:root {
    --primary: #FF6B6B;          /* Coral */
    --primary-dark: #E55555;      /* Darker coral */
    --primary-light: #FFE5E5;     /* Light coral background */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-900);
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-right: auto;
}

.header-tagline {
    color: #6b7280;
    font-size: 1rem;
}

/* Header Search */
.header-search {
    flex: 0 1 300px;
}

.header-search form {
    display: flex;
    background: var(--gray-100);
    border-radius: 40px;
    padding: 4px;
}

.header-search input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}

.header-search button {
    background: var(--primary);
    border: none;
    color: white;
    border-radius: 40px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.header-search button:hover {
    background: var(--primary-dark);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 140px;
    display: none;
    z-index: 100;
}

.lang-dropdown.show { display: block; }

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--gray-800);
    text-decoration: none;
}

.lang-dropdown a:hover { background: var(--gray-100); }

/* Notifications */
.header-notifications {
    position: relative;
}

.notif-btn {
    background: none;
    border: 1px solid #e5e7eb;
    padding: 8px;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
}

.badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 280px;
    padding: 12px;
    display: none;
    z-index: 100;
}

.notif-dropdown.show { display: block; }

.notif-dropdown .empty {
    color: #6b7280;
    text-align: center;
    padding: 16px;
}

/* Auth Buttons */
.header-auth {
    display: flex;
    gap: 8px;
}

.btn-signin {
    padding: 8px 16px;
    border: 1px solid var(--primary);
    border-radius: 40px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: var(--primary);
    color: white;
}

.btn-signup {
    padding: 8px 16px;
    background: var(--primary);
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-signup:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--gray-50), white);
}

.hero h1 {
    font-size: 2.5rem;
    max-width: 900px;
    margin: 0 auto 24px;
    line-height: 1.2;
    font-weight: 700;
}

.stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 40px 0;
    font-weight: 500;
    color: var(--gray-800);
    flex-wrap: wrap;
}

.stats span {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box form {
    display: flex;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.search-box input {
    flex: 1;
    padding: 16px 24px;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 1.1rem;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 32px;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Features Grid */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 56px;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.feature-card svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.feature-card p {
    color: #4b5563;
}

/* Categories Section */
.categories-section {
    padding: 40px 0 80px;
}

.categories-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.2s;
}

.cat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(255,107,107,0.08);
}

.cat-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.cat-card p {
    color: #4b5563;
    margin-bottom: 20px;
}

.cat-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cat-card a:hover {
    text-decoration: underline;
}

/* Trusted by Section */
.trusted-section {
    padding: 60px 0;
    text-align: center;
    background: white;
}

.trusted-section h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b7280;
    margin-bottom: 40px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trusted-logos img {
    height: 40px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity 0.2s;
}

.trusted-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 0;
    margin: 40px 0 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer {
    background: var(--gray-900);
    color: white;
    padding: 56px 0 24px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-logo span {
    font-size: 1rem;
    font-weight: normal;
    display: block;
    color: #9ca3af;
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin: 48px 0;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #e5e7eb;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #6b7280;
    border-top: 1px solid #374151;
    padding-top: 28px;
    font-size: 0.95rem;
}

/* Public Sidebar */
.public-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 24px 20px;
}

.public-sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0 8px;
}

.close-sidebar:hover {
    color: var(--gray-900);
}

.sidebar-nav h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin: 24px 0 12px;
    font-weight: 600;
}

.sidebar-nav h4:first-of-type {
    margin-top: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--gray-800);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .header-search {
        order: 10;
        width: 100%;
        flex: 1 1 100%;
        margin-top: 12px;
    }
    .logo {
        margin-right: 0;
    }
    .feature-grid,
    .category-cards {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .stats {
        gap: 12px;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .trusted-logos {
        gap: 30px;
    }
}

/* Recent Posts Section */
.recent-posts-section {
    padding: 60px 0;
    background: var(--gray-50);
}
.recent-posts-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.post-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.post-card-content {
    padding: 24px;
}
.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.post-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
}
.post-card h3 a:hover {
    color: var(--primary);
}
.post-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}
.post-meta a {
    color: var(--primary);
    text-decoration: none;
}
.post-excerpt {
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.6;
}
.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.view-all-link {
    text-align: center;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}