/* ============================================
   GCDC Website Styles
   Greene County Democratic Committee
   ============================================ */

/* CSS Variables for easy color management */
:root {
    --primary-green: #1e7a3e;
    --primary-blue: #1e5a9e;
    --accent-green: #2d9c52;
    --accent-blue: #2b7ac9;
    --light-green: #e8f5e9;
    --light-blue: #e3f2fd;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --red-accent: #c62828;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* Header Banner (logo + page title) */
.header-banner {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green) 70%, var(--primary-blue) 100%);
    color: var(--white);
}

.header-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
    min-height: 80px;
}

.header-banner .logo-container {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.header-banner .page-title {
    text-align: center;
    padding: 0.5rem 0;
}

.header-banner .page-title h1 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 2rem;
}

.header-banner .page-title p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
}

/* Navigation Bar */
nav {
    background-color: #1a3a7a;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    height: 75%;
}

.nav-links li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 0 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content Area */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Page Banner (legacy, kept for compatibility) */
.page-banner {
    display: none;
}

/* Content Sections */
.content-section {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.content-section.highlight {
    border-left: 4px solid var(--primary-green);
    background: linear-gradient(to right, var(--light-green), var(--white));
}

/* Call-to-Action Boxes */
.cta-box {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green) 70%, var(--accent-blue) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 12px var(--shadow);
}

.cta-box h2,
.cta-box h3 {
    color: var(--white);
}

.cta-box a {
    color: var(--white);
    font-weight: bold;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(180deg, #66c6ff 0%, #399bee 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 198, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #49b3ff 5%, #1878d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 156, 255, 0.4);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: var(--accent-green);
    text-decoration: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-image {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Contact Info Styling */
.contact-info {
    background: var(--light-blue);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.social-media {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: center;
}

.social-media a {
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.1);
}

/* Representative Cards */
.rep-section {
    margin: 2rem 0;
}

.rep-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-blue);
}

.rep-card.democrat {
    border-left-color: var(--primary-blue);
}

.rep-card.republican {
    border-left-color: var(--red-accent);
}

.party-label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.party-label.democrat {
    color: var(--primary-blue);
}

.party-label.republican {
    color: var(--red-accent);
}

/* Collapsible Sections (Details/Summary) */
details {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

summary {
    cursor: pointer;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    background: linear-gradient(to right, var(--light-green), var(--white));
    transition: background 0.3s ease;
}

summary:hover {
    background: linear-gradient(to right, var(--accent-green), var(--light-green));
    color: var(--white);
}

details[open] summary {
    border-bottom: 1px solid #ddd;
}

.details-content {
    padding: 1.5rem;
}

/* Calendar Embed */
.calendar-container {
    margin: 2rem 0;
    text-align: center;
}

.calendar-container iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    max-width: 100%;
}

/* Memory/Blog Entry Styling */
.memory-entry {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 4px solid var(--accent-green);
}

.memory-entry-header {
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.memory-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.memory-entry h2 {
    color: var(--primary-green);
    margin-top: 0;
}

.memory-image {
    margin: 1.5rem 0;
    text-align: center;
}

.memory-image img {
    max-width: 800px;
    margin: 0 auto;
}

/* Checkmark Overlay for Images */
.checkmark-overlay {
    position: relative;
    display: inline-block;
}

.checkmark-overlay::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56rem;
    font-weight: bold;
    color: rgba(76, 175, 80, 0.7);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Success Badge (for 2025 election) */
.success-badge {
    display: inline-block;
    background: #4caf50;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    margin-left: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green) 70%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: var(--white);
    text-decoration: underline;
}

/* Hidden link to members area - looks like plain text */
.footer-content a.copyright-link,
.footer-content a.copyright-link:hover,
.footer-content a.copyright-link:visited,
.footer-content a.copyright-link:focus,
.footer-content a.copyright-link:active {
    color: inherit;
    text-decoration: none !important;
    cursor: default;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-inner {
        justify-content: space-between;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #4169E1;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 3rem 0 2rem;
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    /* Adjust header banner for mobile */
    .header-banner-inner {
        padding: 1rem;
        min-height: auto;
    }

    .header-banner .logo-container {
        position: static;
        transform: none;
        margin: 0 auto 0.5rem;
    }

    .header-banner .page-title h1 {
        font-size: 1.5rem;
    }

    .header-banner .page-title p {
        font-size: 0.85rem;
    }

    .logo {
        height: 60px;
    }

    /* Adjust main content for mobile */
    main {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Stack social media icons */
    .social-media {
        flex-direction: column;
        gap: 1rem;
    }

    /* ActBlue button responsive */
    .actblue-btn {
        font-size: 1.2rem;
        padding: 1.2rem 2rem;
    }

    /* Calendar responsive */
    .calendar-container iframe {
        width: 100%;
        height: 400px;
    }
}

/* Accessibility */
:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ActBlue Donate Button */
.donate-button-container {
    text-align: center;
    margin: 3rem 0;
}

.actblue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #66c6ff 0%, #399bee 100%);
    padding: 1.5rem 3rem;
    border-radius: 2.5rem;
    box-shadow: 0 10px 24px rgba(102, 198, 255, 0.21), 0 2px 0 #399bee;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: box-shadow 0.12s, transform 0.08s, background 0.08s;
    position: relative;
    outline: none;
}

.actblue-btn:hover,
.actblue-btn:focus {
    box-shadow: 0 16px 48px rgba(52, 156, 255, 0.55), 0 4px 0 #1560a4;
    background: linear-gradient(180deg, #49b3ff 5%, #1878d2 100%);
    text-shadow: 0 0 6px #99dbff;
    filter: brightness(1.07) drop-shadow(0 0 16px #49b3ff88);
    text-decoration: none;
}

.actblue-btn:active {
    box-shadow: 0 2px 2px #1878d2, 0 1px 0 #1560a4;
    background: linear-gradient(180deg, #1560a4 0%, #1878d2 100%);
    transform: translateY(3px) scale(0.98);
}

/* Print Styles */
@media print {
    header,
    footer,
    .hamburger,
    .nav-links {
        display: none;
    }

    main {
        max-width: 100%;
    }
}
