/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Ensure header and footer span full width on mobile */
@media (max-width: 768px) {
    .header,
    .footer {
        width: 100%;
        margin: 0 auto;
    }

    .header .container,
    .footer .container {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 640px) {
    .main {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
        border-radius: 16px;
        gap: 1.25rem;
    }

    .posts-section {
        padding: 0;
    }

    .ad-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    .ad-sidebar-content,
    .affiliate-section {
        margin: 0;
        width: 100%;
    }

    .affiliate-products {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Mobile-specific optimizations */
html {
    -webkit-text-size-adjust: 100%; /* Prevent text size adjustment on iOS */
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary: #d7263d;
    --primary-dark: #a61b2d;
    --primary-darker: #700713;
    --primary-light: #ff4f5e;
    --accent: #ffd447;
    --accent-light: #ffe684;
    --accent-dark: #f0b429;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-dark: rgba(45, 0, 9, 0.85);
    --text-primary: #1a1a1a;
    --text-muted: #6c757d;
    --text-on-primary: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation; /* Improve touch responsiveness */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Desktop container improvements */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}


/* Header Styles */
.header {
    background: linear-gradient(135deg, #8f0015 0%, #6d0011 50%, #3a0008 100%);
    color: white;
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.logo-section {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.music-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 212, 71, 0.35));
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, #fff6b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(255,215,0,0.3);
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.6;
}

.blog-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin: 0;
    margin-top: 0.1rem;
    line-height: 1.3;
    display: block;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Styles */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    margin: 0 1rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    display: inline-block;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 212, 71, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 212, 71, 0.32);
    border-color: rgba(255, 212, 71, 0.32);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.dropdown-link:hover {
    background-color: rgba(215, 38, 61, 0.12);
    color: var(--primary);
}

.dropdown-separator {
    height: 1px;
    background-color: #e9ecef;
    margin: 0.5rem 0;
    list-style: none;
}

.dropdown-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    list-style: none;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e9ecef;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

.secure-post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.posting-as-user {
    background: rgba(215, 38, 61, 0.12);
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.posting-as-user small {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.posting-as-user span {
    color: var(--primary);
    font-weight: 600;
}

.dark-theme .posting-as-user {
    background: rgba(215, 38, 61, 0.18);
    border-left-color: var(--primary);
}

.dark-theme .posting-as-user small {
    color: #bdc3c7;
}

.dark-theme .posting-as-user span {
    color: var(--accent);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
    min-height: 44px; /* Better touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.38);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dark theme for modal */
.dark-theme .modal-container {
    background: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .dropdown-menu {
    background: rgba(45, 45, 45, 0.95);
    border: 1px solid #555;
}

.dark-theme .dropdown-link {
    color: #e0e0e0;
}

.dark-theme .dropdown-link:hover {
    background-color: rgba(215, 38, 61, 0.22);
    color: var(--accent);
}

.dark-theme .modal-header {
    border-bottom-color: #555;
}

.dark-theme .secure-post-form .form-group label {
    color: #e0e0e0;
}

.dark-theme .secure-post-form .form-group input,
.dark-theme .secure-post-form .form-group textarea {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

.dark-theme .secure-post-form .form-group input:focus,
.dark-theme .secure-post-form .form-group textarea:focus {
    border-color: var(--primary);
    background: #404040;
}

.dark-theme .secure-post-form .form-group input::placeholder,
.dark-theme .secure-post-form .form-group textarea::placeholder {
    color: #999;
}

.dark-theme .checkbox-label {
    color: #d0d0d0;
}

/* Responsive design for modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .dropdown-menu {
        min-width: 150px;
    }
    
    /* Mobile dropdown behavior */
    .nav-dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.25rem;
    backdrop-filter: blur(10px);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    min-width: 44px; /* Better touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1.2rem;
    min-width: 44px; /* Better touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Main Content */
.main {
    padding: 3rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 2rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 2.25rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop responsiveness improvements */
@media (min-width: 1025px) and (max-width: 1440px) {
    .main {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        gap: 1.75rem;
        padding: 2rem;
    }
}

@media (min-width: 1441px) {
    .main {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 350px);
        gap: 2.5rem;
        padding: 2.5rem;
    }
}

/* Ad Container Styles */
.ad-container {
    margin: 1rem 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    display: none; /* Hide all ad containers */
}

.ad-banner-top {
    display: none; /* Hide top banner */
}

.ad-banner-bottom {
    display: none; /* Hide bottom banner */
}

.ad-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-width: 100%;
}

/* Desktop sidebar improvements */
@media (min-width: 769px) {
    .ad-sidebar {
        max-width: 320px;
    }
}

.ad-sidebar-content {
    margin-bottom: 2rem;
    display: none; /* Hide sidebar ads */
}

/* Affiliate Section */
.affiliate-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.affiliate-section h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.affiliate-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.affiliate-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.affiliate-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.affiliate-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem;
}

.affiliate-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.affiliate-item h4 {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.affiliate-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.affiliate-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.archive-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-section h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-month {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-month-title {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.archive-month-title span {
    font-size: 0.85rem;
    color: #868e96;
}

.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.archive-post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.archive-post-link::before {
    content: '🎵';
    font-size: 0.85rem;
}

.archive-post-link:hover {
    background: rgba(215, 38, 61, 0.12);
    color: var(--primary);
}

.archive-empty {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
}

.more-posts-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(215, 38, 61, 0.12);
    border: 1px solid rgba(215, 38, 61, 0.22);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
}

/* Add Post Section */
.add-post-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.form-container h2 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.help-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.38);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Posts Section */
.posts-section h2 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.seo-intro {
    background: linear-gradient(135deg, rgba(215, 38, 61, 0.12) 0%, rgba(255, 212, 71, 0.18) 100%);
    border: 1px solid rgba(215, 38, 61, 0.22);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.seo-intro p {
    color: whitesmoke;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

.dark-theme .seo-intro p {
    color: #f3f4f6;
}

.posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Desktop posts container optimization */
@media (min-width: 769px) {
    .posts-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .posts-container {
        gap: 3rem;
    }
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.post-card.highlight {
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.45), 0 14px 30px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 212, 71, 0.32);
}

.post-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-author {
    font-weight: 600;
    color: var(--primary);
}

.post-meta-dot {
    color: #adb5bd;
}

.post-date {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: normal;
}

.post-content {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.post-video {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    position: relative;
    background: #000;
}

.post-video iframe {
    width: 100%;
    height: 315px;
    border: none;
    display: block;
}

/* Desktop video sizing - better aspect ratio */
@media (min-width: 769px) {
    .post-video iframe {
        height: 450px;
        min-height: 400px;
    }
    
    .lazy-video {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    }
}

@media (min-width: 1025px) {
    .post-video iframe {
        height: 500px;
    }
}

@media (min-width: 1441px) {
    .post-video iframe {
        height: 560px;
    }
}

/* Lazy loading video styles */
.lazy-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover {
    opacity: 0.9;
}

.video-play-button {
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-play-button:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

.lazy-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Instagram video embeds */
.instagram-video {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.instagram-video blockquote {
    margin: 0 auto;
    max-width: 100%;
}

/* Facebook video embeds */
.facebook-video {
    min-height: 400px;
}

.facebook-video iframe {
    min-height: 400px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background: #c0392b;
}

.post-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.post-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(215, 38, 61, 0.32);
}

/* Comments Section */
.comment-toggle-btn {
    background: rgba(215, 38, 61, 0.12);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px; /* Better touch target */
}

.comment-toggle-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(215, 38, 61, 0.32);
}

.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.comment-form-container {
    margin-bottom: 2rem;
}

.comment-login-prompt {
    background: rgba(255, 212, 71, 0.15);
    border: 1px solid rgba(255, 212, 71, 0.32);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #666;
}

.comment-login-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.comment-login-prompt a:hover {
    text-decoration: underline;
}

.comment-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #333;
}

.comment-as-user {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.comment-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(215, 38, 61, 0.22);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
    background: white;
    color: #333;
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.12);
}

.comment-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-submit-btn {
    min-height: 44px; /* Better touch target */
    padding: 0.75rem 1.5rem;
}

.comment-count-badge {
    background: rgba(215, 38, 61, 0.12);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.comments-container {
    margin-top: 1rem;
}

.comments-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-author-name {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.comment-date {
    color: #666;
    font-size: 0.8rem;
}

.comment-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    min-height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-delete-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

.comment-text {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    font-weight: 500;
}

.comment-message.show {
    opacity: 1;
    transform: translateX(0);
}

.comment-message-success {
    background: #28a745;
    color: white;
}

.comment-message-error {
    background: #dc3545;
    color: white;
}

/* Dark theme for comments */
.dark-theme .comment-form {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .comment-form-header {
    color: #e0e0e0;
}

.dark-theme .comment-as-user {
    color: #999;
}

.dark-theme .comment-textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(215, 38, 61, 0.32);
    color: #e0e0e0;
}

.dark-theme .comment-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.dark-theme .comment-help {
    color: #999;
}

.dark-theme .comment-login-prompt {
    background: rgba(255, 212, 71, 0.15);
    border-color: rgba(255, 212, 71, 0.32);
    color: #bdc3c7;
}

.dark-theme .comment-item {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.dark-theme .comment-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dark-theme .comment-author-name {
    color: #e0e0e0;
}

.dark-theme .comment-date {
    color: #999;
}

.dark-theme .comment-text {
    color: #d0d0d0;
}

.dark-theme .comments-empty {
    color: #999;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #750010 0%, #4f000b 50%, #260005 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.stats {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #bdc3c7;
    margin: 0;
}

.footer-actions {
    display: flex;
    gap: 1rem;
}

.footer-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Enhanced Responsive Design */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .main {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .blog-title {
        font-size: 1.4rem;
        white-space: nowrap;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .posts-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card {
        padding: 2rem;
    }
    
    .post-video iframe {
        height: 400px;
    }
}

/* Tablets and Medium Screens (768px and below) */
@media (max-width: 768px) {
    .main {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        margin: 2rem 0;
        border-radius: 20px;
    }
    
    .ad-sidebar {
        position: static;
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    
    .ad-sidebar-content,
    .affiliate-section,
    .archive-section {
        margin: 0;
        width: 100%;
    }
    
    .affiliate-products {
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 0;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        position: relative;
        padding-right: 50px; /* Space for mobile menu toggle */
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .logo-section {
        order: 1;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 60px); /* Prevent overlap with menu toggle */
        padding-right: 10px; /* Extra padding to prevent text touching search */
        gap: 0.35rem; /* Space between title and subtitle */
        display: flex;
        flex-direction: column;
        overflow: visible; /* Allow text to be visible */
    }
    
    .logo-container {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .blog-title {
        font-size: 1.4rem;
        font-weight: 700;
        white-space: nowrap;
        margin: 0;
        padding: 0;
        line-height: 1.4;
        display: block;
        overflow: visible;
        max-width: 100%;
        /* Ensure gradient text is visible */
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, #fff6b0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Fallback for browsers that don't support gradients */
        color: var(--accent);
    }
    
    .blog-subtitle {
        font-size: 0.85rem;
        font-weight: 700;
        margin: 0;
        padding: 0;
        line-height: 1.4;
        white-space: nowrap;
        display: block;
        overflow: visible;
        max-width: 100%;
        /* Ensure gradient text is visible */
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Fallback for browsers that don't support gradients */
        color: var(--primary-light);
    }
    
    .main-nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        margin: 0;
    }
    
    .main-nav.active {
        max-height: 1000px;
        margin-top: 1rem;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        border-radius: 8px;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown > .nav-link {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        margin-top: 0.75rem;
        display: flex;
        gap: 0.75rem;
        clear: both; /* Ensure it's on a new line */
    }
    
    .search-container {
        flex: 1;
        max-width: none;
        min-width: 0; /* Allow shrinking */
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch target */
    }
    
    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .posts-section {
        padding: 2rem 0;
    }
    
    .post-card {
        padding: 1.5rem;
        margin: 0;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .post-video iframe {
        height: 250px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .stats {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1.5rem 1rem;
        margin: 1.25rem 0;
        border-radius: 16px;
    }
    
    .ad-sidebar {
        gap: 1rem;
    }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        max-width: 100%;
    }

    .header .container,
    .footer .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }
    
    .ad-sidebar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .ad-sidebar-content {
        margin-bottom: 0.5rem;
    }
    
    .affiliate-section {
        margin-bottom: 0.5rem;
    }
    
    .affiliate-item {
        min-width: 150px;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-section {
        max-width: calc(100% - 60px); /* Prevent overlap with menu toggle */
        padding-right: 10px;
        gap: 0.35rem; /* Space between title and subtitle */
        display: flex;
        flex-direction: column;
        overflow: visible; /* Allow text to be visible */
    }
    
    .logo-container {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow: visible;
    }
    
    .main-nav {
        margin: 0 0.5rem;
    }
    
    .blog-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        line-height: 1.4;
        display: block;
        overflow: visible;
        max-width: 100%;
        /* Ensure gradient text is visible */
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 60%, #fff6b0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Fallback for browsers that don't support gradients */
        color: var(--accent);
    }
    
    .blog-subtitle {
        font-size: 0.8rem;
        font-weight: 700;
        margin: 0;
        padding: 0;
        line-height: 1.4;
        white-space: nowrap;
        display: block;
        overflow: visible;
        max-width: 100%;
        /* Ensure gradient text is visible */
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, var(--accent) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        /* Fallback for browsers that don't support gradients */
        color: var(--primary-light);
    }
    
    .header-content {
        gap: 0.5rem;
        padding-right: 50px; /* Space for mobile menu toggle */
    }
    
    .mobile-menu-toggle {
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
    }
    
    .search-input {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .search-btn {
        padding: 0.75rem;
    }
    
    .theme-toggle {
        padding: 0.75rem;
        font-size: 1.2rem;
    }
    
    .posts-section {
        padding: 1.5rem 0;
    }
    
    .post-card {
        padding: 1rem;
        margin: 0;
        border-radius: 10px;
    }
    
    .post-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .post-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .post-video iframe {
        height: 200px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .comment-toggle-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .comment-form {
        padding: 1rem;
    }
    
    .comment-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comment-submit-btn {
        width: 100%;
    }
    
    .comment-count-badge {
        text-align: center;
        width: 100%;
    }
    
    .comment-item {
        padding: 0.75rem;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .comment-author-name {
        font-size: 0.9rem;
    }
    
    .comment-date {
        font-size: 0.75rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        font-size: 1.5rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.75rem;
        min-width: auto;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Enhanced Responsive Design for Modal */
@media (max-width: 1024px) {
    .modal-container {
        width: 90%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-container {
        width: 95%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .dropdown-menu {
        min-width: 150px;
    }
    
    /* Mobile dropdown behavior */
    .nav-dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-container {
        width: 100%;
        margin: 0;
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    
    .captcha-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .captcha-display {
        font-size: 1.2rem;
        padding: 0.75rem;
    }
    
    .captcha-refresh {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Animation for new posts */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card.new-post {
    animation: slideIn 0.5s ease-out;
}

/* Dark Theme */
.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-theme .add-post-section,
.dark-theme .post-card {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus {
    border-color: var(--primary);
    background: #404040;
}

.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder {
    color: #999;
}

.dark-theme .post-title {
    color: #e0e0e0;
}

.dark-theme .post-content {
    color: #d0d0d0;
}

.dark-theme .post-date {
    color: #adb5bd;
}

.dark-theme .post-meta {
    color: #adb5bd;
}

.dark-theme .post-author {
    color: var(--accent);
}

.dark-theme .post-meta-dot {
    color: #666;
}

.dark-theme .empty-state {
    color: #999;
}

.dark-theme .footer {
    background: linear-gradient(135deg, #3d0009 0%, #260005 50%, #120002 100%);
}

.dark-theme .footer-section h3,
.dark-theme .footer-section h4 {
    color: #e0e0e0;
}

.dark-theme .footer-section p {
    color: #b0b0b0;
}

.dark-theme .footer-links a {
    color: #b0b0b0;
}

.dark-theme .footer-links a:hover {
    color: var(--accent);
}

.dark-theme .footer-bottom p {
    color: #b0b0b0;
}

.dark-theme .footer-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

.dark-theme .footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .post-link {
    color: var(--accent);
    border-color: var(--accent);
}

.dark-theme .post-link:hover {
    background: var(--accent);
    color: #2d2d2d;
}

/* About Page Styles */
.about-section {
    padding: 2rem 0;
}

/* Override main grid layout for about page - make container span full width */
.main > .container {
    grid-column: 1 / -1;
    width: 100%;
}

/* Ensure about page doesn't use sidebar grid layout */
body:has(.about-section) .main,
.main:has(.about-section) {
    grid-template-columns: 1fr !important;
    padding: 2rem 0;
}

/* Fallback for browsers that don't support :has() */
@supports not selector(:has(*)) {
    .about-section {
        grid-column: 1 / -1;
    }
}

.about-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.about-title {
    color: #495057;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
    max-width: 100%;
    box-sizing: border-box;
}

/* Medium screens - adjust grid layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-content {
        gap: 1.5rem;
        grid-template-columns: 1.5fr 1fr;
    }
    
    .about-stats {
        padding: 1.25rem;
    }
}

/* Large screens - ensure proper spacing */
@media (min-width: 1025px) {
    .about-content {
        gap: 2.5rem;
    }
}

.about-text {
    line-height: 1.8;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.about-intro {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(215, 38, 61, 0.12) 0%, rgba(255, 212, 71, 0.18) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.about-features,
.about-community,
.kannada-message,
.website-info {
    margin-bottom: 2rem;
}

.about-features h3,
.about-community h3,
.kannada-message h3,
.website-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 1.1rem;
    color: #495057;
}

.features-list li:last-child {
    border-bottom: none;
}

.kannada-text {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    background: rgba(215, 38, 61, 0.12);
    border-radius: 10px;
    margin: 1rem 0;
}

.about-stats {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    align-self: start;
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.about-stats h3 {
    color: #495057;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-card h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.about-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.38);
}

.action-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.action-btn.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.38);
}

.community-info {
    text-align: center;
}

.community-info p {
    margin-bottom: 0.5rem;
}

/* Dark theme for About page */
.dark-theme .about-container {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .about-title {
    color: #e0e0e0;
}

.dark-theme .about-intro {
    background: linear-gradient(135deg, rgba(215, 38, 61, 0.22) 0%, rgba(255, 212, 71, 0.25) 100%);
    color: #e0e0e0;
}

.dark-theme .features-list li {
    color: #d0d0d0;
    border-bottom-color: #404040;
}

.dark-theme .about-stats {
    background: #3d3d3d;
    border-color: #555;
}

.dark-theme .stat-card {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .stat-card h4 {
    color: var(--accent);
}

.dark-theme .stat-card p {
    color: #b0b0b0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dark-theme .action-btn.secondary {
    color: var(--accent);
    border-color: var(--accent);
}

.dark-theme .action-btn.secondary:hover {
    background: var(--accent);
    color: #2d2d2d;
}

/* Responsive design for About page */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-container {
        padding: 2rem;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-stats {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 2rem 0;
}

.contact-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-title {
    color: #495057;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.contact-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    color: white;
}

.contact-details h4 {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.email-link,
.website-link,
.community-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-link:hover,
.website-link:hover,
.community-link:hover {
    color: var(--accent);
}

.email-address-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.email-address-link:hover {
    color: var(--primary-light);
}

.dark-theme .email-address-link {
    color: var(--accent);
}

.dark-theme .email-address-link:hover {
    color: var(--accent-light);
}

.contact-form-container h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.12);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.contact-faq {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.contact-faq h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Dark theme for Contact page */
.dark-theme .contact-container {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .contact-title {
    color: #e0e0e0;
}

.dark-theme .contact-subtitle {
    color: #b0b0b0;
}

.dark-theme .contact-info h3,
.dark-theme .contact-form-container h3,
.dark-theme .contact-faq h3 {
    color: var(--accent);
}

.dark-theme .contact-info p {
    color: #d0d0d0;
}

.dark-theme .contact-method {
    background: #3d3d3d;
    border-color: #555;
}

.dark-theme .contact-details h4 {
    color: #e0e0e0;
}

.dark-theme .contact-details p {
    color: #b0b0b0;
}

.dark-theme .contact-form .form-group label {
    color: #e0e0e0;
}

.dark-theme .contact-form .form-group input,
.dark-theme .contact-form .form-group select,
.dark-theme .contact-form .form-group textarea {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

.dark-theme .contact-form .form-group input:focus,
.dark-theme .contact-form .form-group select:focus,
.dark-theme .contact-form .form-group textarea:focus {
    border-color: var(--primary);
    background: #404040;
}

.dark-theme .contact-form .form-group input::placeholder,
.dark-theme .contact-form .form-group textarea::placeholder {
    color: #999;
}

.dark-theme .checkbox-label {
    color: #d0d0d0;
}

.dark-theme .faq-item {
    background: #3d3d3d;
    border-color: #555;
}

.dark-theme .faq-item h4 {
    color: var(--accent);
}

.dark-theme .faq-item p {
    color: #d0d0d0;
}

.dark-theme .contact-faq {
    border-top-color: #555;
}

/* Responsive design for Contact page */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        padding: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Security Elements Styles */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.captcha-group {
    margin-top: 1rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.captcha-display {
    width: 120px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border: 2px solid #e9ecef;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    letter-spacing: 3px;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.captcha-refresh {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.captcha-refresh:hover {
    background: #5a6268;
}

.captcha-help {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.security-notice {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(215, 38, 61, 0.12);
    border-radius: 5px;
    border: 1px solid rgba(215, 38, 61, 0.22);
}

.security-notice small {
    color: var(--primary);
    font-weight: 500;
}

/* Dark theme for security elements */
.dark-theme .captcha-display {
    border-color: #555;
}

.dark-theme .captcha-refresh {
    background: #495057;
}

.dark-theme .captcha-refresh:hover {
    background: #343a40;
}

.dark-theme .captcha-help {
    color: #b0b0b0;
}

.dark-theme .security-notice {
    background: rgba(215, 38, 61, 0.22);
    border-color: rgba(215, 38, 61, 0.32);
}

.dark-theme .security-notice small {
    color: var(--accent);
}

/* Form validation styles */
.contact-form .form-group input:invalid,
.contact-form .form-group textarea:invalid {
    border-color: #dc3545;
}

.contact-form .form-group input:valid,
.contact-form .form-group textarea:valid {
    border-color: #28a745;
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Animation for messages */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Legal Pages Styles (Privacy Policy, Terms of Service) */
.legal-section {
    padding: 2rem 0;
}

.legal-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-title {
    color: #495057;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.legal-updated {
    text-align: center;
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content {
    line-height: 1.8;
    color: #495057;
}

.legal-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(215, 38, 61, 0.12) 0%, rgba(255, 212, 71, 0.18) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.legal-intro p {
    margin-bottom: 1rem;
}

.legal-intro p:last-child {
    margin-bottom: 0;
}

.legal-section-item {
    margin-bottom: 2.5rem;
}

.legal-section-item h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section-item h2:first-child {
    margin-top: 0;
}

.legal-section-item h3 {
    color: #495057;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section-item p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section-item ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.legal-section-item a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.legal-section-item a:hover {
    color: var(--primary-light);
}

.legal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.action-btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid;
}

.action-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 38, 61, 0.3);
}

.action-btn.secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.action-btn.secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 38, 61, 0.3);
}

/* Dark theme for Legal pages */
.dark-theme .legal-container {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .legal-title {
    color: #e0e0e0;
}

.dark-theme .legal-updated {
    color: #b0b0b0;
}

.dark-theme .legal-content {
    color: #e0e0e0;
}

.dark-theme .legal-intro {
    background: linear-gradient(135deg, rgba(215, 38, 61, 0.22) 0%, rgba(255, 212, 71, 0.25) 100%);
    color: #e0e0e0;
}

.dark-theme .legal-section-item h2 {
    color: var(--accent);
}

.dark-theme .legal-section-item h3 {
    color: #e0e0e0;
}

.dark-theme .legal-section-item a {
    color: var(--accent);
}

.dark-theme .legal-section-item a:hover {
    color: var(--accent-light);
}

.dark-theme .legal-actions {
    border-top-color: #555;
}

.dark-theme .action-btn.primary {
    background: var(--primary);
    color: white;
}

.dark-theme .action-btn.primary:hover {
    background: var(--primary-light);
}

.dark-theme .action-btn.secondary {
    color: var(--accent);
    border-color: var(--accent);
}

.dark-theme .action-btn.secondary:hover {
    background: var(--accent);
    color: #2d2d2d;
}

/* Responsive design for Legal pages */
@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .legal-section-item h2 {
        font-size: 1.5rem;
    }
    
    .legal-section-item h3 {
        font-size: 1.2rem;
    }
    
    .legal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        width: 100%;
        text-align: center;
    }
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #e0e0e0;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
    border-top: 3px solid var(--primary);
}

.cookie-consent-banner-hiding {
    animation: slideDown 0.3s ease-in;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cookie-consent-text p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: var(--accent-light);
}

.cookie-consent-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 38, 61, 0.4);
}

.cookie-btn-essential {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.cookie-btn-essential:hover {
    background: var(--accent);
    color: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 212, 71, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: #e0e0e0;
    border-color: #666;
}

.cookie-btn-decline:hover {
    background: #666;
    color: white;
    border-color: #777;
    transform: translateY(-2px);
}

/* Light theme for cookie banner */
body:not(.dark-theme) .cookie-consent-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border-top: 3px solid var(--primary);
}

body:not(.dark-theme) .cookie-consent-text {
    color: #495057;
}

body:not(.dark-theme) .cookie-consent-text p {
    color: #495057;
}

body:not(.dark-theme) .cookie-btn-decline {
    color: #495057;
    border-color: #dee2e6;
}

body:not(.dark-theme) .cookie-btn-decline:hover {
    background: #dee2e6;
    color: #495057;
}

/* Responsive design for cookie banner */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-consent-text {
        min-width: auto;
    }
}

/* Add bottom padding to body when cookie banner is shown */
body:has(.cookie-consent-banner) {
    padding-bottom: 150px;
}

@media (max-width: 768px) {
    body:has(.cookie-consent-banner) {
        padding-bottom: 250px;
    }
}

/* Registration Page Styles */
.registration-section {
    padding: 2rem 0;
}

.registration-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-width: 1000px;
    margin: 0 auto;
}

.registration-title {
    color: #495057;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.registration-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.registration-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.benefits-list li {
    color: #495057;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
    line-height: 1.6;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.security-badge {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--primary);
    margin-top: 2rem;
}

.security-badge h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.security-badge p {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.security-badge ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-badge ul li {
    color: #495057;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.security-badge ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.registration-form-container h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.registration-form .form-group {
    display: flex;
    flex-direction: column;
}

.registration-form .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.registration-form .form-group input,
.registration-form .form-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.registration-form .form-group input:focus,
.registration-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.12);
}

.help-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.password-strength.weak {
    background: #f8d7da;
    color: #721c24;
}

.password-strength.fair {
    background: #fff3cd;
    color: #856404;
}

.password-strength.good {
    background: #d1ecf1;
    color: #0c5460;
}

.password-strength.strong {
    background: #d4edda;
    color: #155724;
}

.strength-text {
    font-weight: 600;
}

.login-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.login-link p {
    color: #495057;
    margin: 0;
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 44px; /* Better touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 38, 61, 0.32);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Dark theme for Registration page */
.dark-theme .registration-container {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .registration-title {
    color: #e0e0e0;
}

.dark-theme .registration-subtitle {
    color: #b0b0b0;
}

.dark-theme .registration-info h3,
.dark-theme .registration-form-container h3 {
    color: var(--accent);
}

.dark-theme .benefits-list li {
    color: #d0d0d0;
    border-bottom-color: #555;
}

.dark-theme .security-badge {
    background: #3d3d3d;
    border-color: var(--primary);
}

.dark-theme .security-badge h4 {
    color: var(--accent);
}

.dark-theme .security-badge p,
.dark-theme .security-badge ul li {
    color: #d0d0d0;
}

.dark-theme .registration-form .form-group label {
    color: #e0e0e0;
}

.dark-theme .registration-form .form-group input,
.dark-theme .registration-form .form-group select {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

.dark-theme .registration-form .form-group input:focus,
.dark-theme .registration-form .form-group select:focus {
    border-color: var(--primary);
    background: #404040;
}

.dark-theme .registration-form .form-group input::placeholder {
    color: #999;
}

.dark-theme .help-text {
    color: #b0b0b0;
}

.dark-theme .login-link {
    border-top-color: #555;
}

.dark-theme .login-link p {
    color: #d0d0d0;
}

.dark-theme .login-link a {
    color: var(--accent);
}

.dark-theme .login-link a:hover {
    color: var(--primary);
}

/* Responsive design for Registration page */
@media (max-width: 768px) {
    .registration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .registration-container {
        padding: 2rem;
    }
    
    .registration-title {
        font-size: 2rem;
    }
    
    .registration-info {
        order: 2;
    }
    
    .registration-form-container {
        order: 1;
    }
}

/* Profile Page Styles */
.profile-section {
    padding: 2rem 0;
}

.profile-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    max-width: 900px;
    margin: 0 auto;
}

.profile-title {
    color: #495057;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1rem;
}

.profile-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.profile-content {
    margin-top: 2rem;
}

.profile-loading {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.profile-error {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid var(--primary);
}

.profile-error h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.profile-error p {
    color: #495057;
    margin-bottom: 2rem;
}

.profile-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 4px 12px rgba(215, 38, 61, 0.32);
}

.avatar-icon {
    color: white;
}

.profile-header-info h3 {
    color: #495057;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-username {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

.profile-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-detail-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.profile-detail-section h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-value {
    color: #495057;
    font-weight: 500;
    text-align: right;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-stats .stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-stats .stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
}

.profile-stats .stat-info h4 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-stats .stat-info p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Dark theme for Profile page */
.dark-theme .profile-container {
    background: #2d2d2d;
    border-color: #404040;
    color: #e0e0e0;
}

.dark-theme .profile-title {
    color: #e0e0e0;
}

.dark-theme .profile-subtitle {
    color: #b0b0b0;
}

.dark-theme .profile-error {
    background: #3d3d3d;
    border-color: var(--primary);
}

.dark-theme .profile-error h3 {
    color: var(--accent);
}

.dark-theme .profile-error p {
    color: #d0d0d0;
}

.dark-theme .profile-card {
    background: #3d3d3d;
    border-color: #555;
}

.dark-theme .profile-header {
    border-bottom-color: #555;
}

.dark-theme .profile-header-info h3 {
    color: #e0e0e0;
}

.dark-theme .profile-username {
    color: #b0b0b0;
}

.dark-theme .profile-detail-section {
    background: #2d2d2d;
    border-color: #555;
}

.dark-theme .profile-detail-section h4 {
    color: var(--accent);
}

.dark-theme .detail-item {
    border-bottom-color: #555;
}

.dark-theme .detail-label {
    color: #b0b0b0;
}

.dark-theme .detail-value {
    color: #e0e0e0;
}

.dark-theme .profile-actions {
    border-top-color: #555;
}

.dark-theme .profile-stats .stat-card {
    background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
    border-color: #555;
}

.dark-theme .profile-stats .stat-info h4 {
    color: #e0e0e0;
}

.dark-theme .profile-stats .stat-info p {
    color: #b0b0b0;
}

/* Responsive design for Profile page */
@media (max-width: 768px) {
    .profile-container {
        padding: 2rem;
    }
    
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .profile-header-info h3 {
        font-size: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
}
