/*
Theme Name: Your Party Branch
Theme URI: https://yourparty.uk
Author: Your Party
Author URI: https://yourparty.uk
Description: A white-labeled WordPress theme for Your Party branches. Fully customizable with logo support, works in both multisite and single site setups. Features the signature Your Party design aesthetic with bold typography and activist branding.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourparty-branch
Tags: politics, activism, community, custom-logo, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, blog, one-column, two-columns, custom-background, responsive-layout
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e63946;
    --primary-red-dark: #d62839;
    --primary-green: #2d6a4f;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f5f5f0;
    --bg-white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red-dark);
}

.underline {
    text-decoration: underline;
    text-decoration-color: var(--primary-red);
    text-decoration-thickness: 4px;
    text-underline-offset: 0.15em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wide-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.site-title-wrapper {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 3px solid var(--primary-green);
    background-color: var(--bg-white);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.site-description {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-red);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: var(--primary-red-dark);
}

.menu-toggle {
    display: none;
    background-color: var(--primary-red);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.diagonal-bg {
    position: absolute;
    top: -10%;
    left: -20%;
    width: 60%;
    height: 120%;
    background-color: var(--primary-red);
    transform: rotate(-15deg);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-red-dark);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--primary-green);
}

.btn-secondary:hover {
    background-color: #1f4d37;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.section-title {
    margin-bottom: 2rem;
    text-transform: uppercase;
}

/* Posts and Pages */
.site-main {
    padding: 3rem 0;
}

article {
    margin-bottom: 3rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Sidebar */
.sidebar {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 4px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-red);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    margin-bottom: 1rem;
}

.footer-widget h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-widget a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-widget a:hover {
    opacity: 1;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px solid var(--primary-red);
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 4px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        width: 100%;
    }
    
    .main-navigation a {
        width: 100%;
    }
    
    .diagonal-bg {
        width: 80%;
        left: -30%;
    }
    
    .container,
    .wide-container {
        padding: 0 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

