/* Global Styles */
:root {
    --bg: #F8F9FA;
    --surface: #FFFFFF;
    --primary: #059669;
    --accent: #F59E0B;
    --text: #0F172A;
    --text-muted: #4B6358;
    --gradient-start: #047857;
    --gradient-mid: #059669;
    --gradient-end: #10B981;
    --gradient-primary: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --shadow-sm: 0 1px 3px 0 rgba(5, 150, 105, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(5, 150, 105, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(5, 150, 105, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(5, 150, 105, 0.2);
    /* Legacy aliases for compatibility */
    --primary-color: var(--primary);
    --text-dark: var(--text);
    --text-light: var(--text-muted);
    --bg-light: var(--bg);
    --bg-white: var(--surface);
    --gradient-blue: var(--gradient-primary);
}

[data-theme="dark"] {
    --bg: #0F1A14;
    --surface: #1A2B22;
    --primary: #34D399;
    --accent: #FBBF24;
    --text: #F1F5F3;
    --text-muted: #9CB8A8;
    --gradient-start: #047857;
    --gradient-mid: #059669;
    --gradient-end: #10B981;
    --gradient-primary: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    /* Legacy aliases for compatibility */
    --primary-color: var(--primary);
    --text-dark: var(--text);
    --text-light: var(--text-muted);
    --bg-light: var(--bg);
    --bg-white: var(--surface);
    --gradient-blue: var(--gradient-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #734a11 0%, #bc7f2a 100%);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg,
.logo img {
    width: 28px;
    height: 28px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu .dropdown-toggle::after {
    content: '▼';
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-menu .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu li {
    padding: 0;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu .dropdown-menu a:hover {
    background-color: var(--bg);
    color: var(--primary);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.5rem;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.site-footer {
    background: var(--gradient-primary);
    color: white;
    margin-top: 2rem;
    padding: 2rem 0 1rem;
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

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

.coffee-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.25);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.coffee-button svg {
    width: 24px;
    height: 24px;
}

.coffee-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-section.support {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section.support h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-content: center;
    }

    .footer-section.support {
        align-items: center;
    }
}
