/* Theme Variables */
:root {
    /* Dark theme (default) */
    --bg-primary: #0B1426;
    --bg-secondary: #1E293B;
    --bg-tertiary: #0F172A;
    --border-color: #334155;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-secondary: #60A5FA;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --border-color: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --accent-primary: #3B82F6;
    --accent-secondary: #2563EB;
    --success-color: #059669;
    --error-color: #DC2626;
    --warning-color: #D97706;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 0; /* Remove default mobile padding */
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header with integrated navigation */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.domain {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.inline-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.inline-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.inline-menu .menu-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.inline-menu .menu-item.active {
    background: var(--primary-color);
    color: white;
}

.inline-menu .menu-item i {
    font-size: 1rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive behavior */
@media (max-width: 1024px) {
    .inline-menu {
        display: none;
    }
    
    .header-navigation {
        justify-content: flex-end;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .header-navigation {
        gap: 0.75rem;
    }
    
    .header-controls {
        gap: 0.75rem;
    }
    
    .inline-menu .menu-item span {
        display: none;
    }
}

/* Remove old desktop menu styles - these should be commented out or removed */
/*
.desktop-menu {
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
}

.desktop-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.desktop-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.desktop-menu .menu-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.desktop-menu .menu-item i {
    font-size: 1rem;
}
*/

/* Profile Menu */
.profile-menu {
    position: relative;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background-color: var(--accent-secondary);
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

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

.profile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-item:hover {
    background-color: var(--bg-tertiary);
}

.profile-item.logout {
    color: var(--error-color);
}

.profile-item i {
    width: 16px;
    text-align: center;
}

.language-toggle {
    display: flex;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background-color: var(--accent-primary);
    color: white;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.375rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
    transform: scale(1.05);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:active i {
    transform: rotate(180deg);
}

.login-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.location-weather {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    justify-content: center;
    transition: color 0.3s ease;
    padding: 0.375rem 0;
    border-top: 1px solid var(--border-color);
}

.temp {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* Main Content with better spacing */
.main {
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Notification Banner */
.notification-banner {
    background: linear-gradient(135deg, var(--warning-color), #F59E0B);
    color: white;
    padding: 0.375rem 0;
    position: relative;
    overflow: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2rem;
}

.notification-icon {
    animation: pulse 2s infinite;
    font-size: 0.875rem;
}

.notification-text {
    font-weight: 500;
    text-align: center;
    font-size: 0.8rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-left: auto;
    font-size: 0.8rem;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.section-header i {
    color: var(--accent-primary);
}

.section-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.control-btn:hover {
    background-color: var(--accent-secondary);
}

.control-btn.secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.control-btn.secondary:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    overflow: hidden;
}

.news-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--accent-secondary);
}

/* Chat Section */
.chat-messages {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.message-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.message-content p {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.chat-join-btn {
    width: 100%;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.chat-join-btn:hover {
    background-color: var(--accent-secondary);
}

/* Business Section - Regular Grid Layout */
.business-section {
    margin-bottom: 2rem;
}

.business-scroll-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.business-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.business-card-small {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card-small:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.business-card-small .business-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.business-card-small .business-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.business-card-small .hours {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.75rem;
}

.business-card-small .business-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
}

/* FAQ Section */
.faq-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open {
    border-color: var(--accent-primary);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--border-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-primary);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 1rem 0;
    line-height: 1.6;
}

.faq-answer ol, .faq-answer ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.faq-answer li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.carousel-btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Business Modal */
.business-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.business-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.business-modal .modal-content {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--border-color);
    max-height: 80vh;
    overflow-y: auto;
}

.business-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.business-modal .modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.25rem;
}

.business-modal .close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.business-modal .close-modal:hover {
    color: var(--text-primary);
}

.business-modal .modal-body {
    padding: 1.5rem;
}

.business-details p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.business-details strong {
    color: var(--text-primary);
}

.business-details ul {
    margin: 0.5rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.business-details li {
    margin: 0.25rem 0;
}

/* Notification Enhancements */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.info {
    border-left-color: var(--accent-primary);
}

/* Enhanced Button Feedback */
.control-btn, .login-btn, .business-actions button, .nav-item {
    transition: all 0.3s ease;
}

.control-btn:active, .login-btn:active, .business-actions button:active {
    transform: scale(0.95);
}

/* Better status indicators */
.business-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.business-status.open {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.business-status.closed {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Mobile adjustments for new layout */
@media (max-width: 768px) {
    /* Add mobile navigation padding only on mobile */
    body {
        padding-bottom: 80px;
    }
    
    /* Hide desktop menu bar on mobile */
    .desktop-menu-bar {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .logo {
        order: 1;
    }
    
    .header-controls {
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .location-weather {
        order: 3;
        width: 100%;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    /* Better section spacing on mobile */
    .left-column {
        gap: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .section-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* News grid improvements */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card {
        margin-bottom: 0;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Calendar mobile improvements */
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-header {
        margin-bottom: 1rem;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        padding: 0.5rem 0.25rem;
        min-height: 35px;
        font-size: 0.85rem;
    }
    
    .event-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .event-date {
        min-width: 45px;
        font-size: 0.7rem;
        padding: 0.375rem;
    }
    
    .event-info h5 {
        font-size: 0.85rem;
    }
    
    .event-info p {
        font-size: 0.75rem;
    }
    
    /* Live chat mobile improvements */
    .live-chat {
        padding: 1rem;
    }
    
    .live-chat .chat-messages {
        max-height: 250px;
    }
    
    .chat-message {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .message-content p {
        font-size: 0.85rem;
        margin-top: 0.125rem;
    }
    
    .message-time {
        font-size: 0.65rem;
    }
    
    .chat-input {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    .send-btn {
        padding: 0.625rem;
    }
    
    /* Centered content mobile */
    .centered-content {
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    /* FAQ mobile improvements */
    .faq-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 0.875rem;
    }
    
    .faq-answer p, .faq-answer ol, .faq-answer ul {
        margin: 0.75rem 0;
        font-size: 0.85rem;
    }
    
    /* Notification banner mobile */
    .notification-banner {
        margin-bottom: 1.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 8px;
    }
    
    .notification-content {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .notification-content span {
        font-size: 0.9rem;
    }
    
    .notification-close {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        align-self: center;
    }
    
    /* Footer mobile improvements */
    .footer {
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 0.75rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Show mobile nav on tablet and mobile */
    .mobile-nav {
        display: flex;
    }
    
    /* Mobile adjustments for modals and notifications */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.85rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .business-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    .marketplace-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    /* Mobile nav still visible */
    .mobile-nav {
        display: flex;
    }
    
    .nav-item {
        font-size: 0.7rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
}

/* Remove the old mobile-specific styles since we've consolidated */
.mobile-chat,
.mobile-marketplace,
.mobile-business {
    display: none;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.top-stories,
.sidebar-marketplace,
.sidebar-business {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.top-stories h3,
.sidebar-marketplace h3,
.sidebar-business h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-marketplace h3 i,
.sidebar-business h3 i {
    color: var(--accent-primary);
}

.story-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.story-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.story-item img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.story-item h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.story-item p {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.see-all-btn {
    width: 100%;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.2s;
}

.see-all-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Sidebar Marketplace */
.marketplace-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.marketplace-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.marketplace-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.marketplace-item img {
    width: 60px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.marketplace-item h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.marketplace-item .price {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Sidebar Business Directory */
.business-quick-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.business-quick-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.business-quick-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.business-quick-item .business-info h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.business-quick-item .business-info p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

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

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden by default on desktop */
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.nav-item.active,
.nav-item:hover {
    color: var(--accent-primary);
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .right-column {
        display: none;
    }
    
    /* Hide desktop menu on tablet */
    .desktop-menu-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Add mobile navigation padding only on mobile */
    body {
        padding-bottom: 80px;
    }
    
    /* Hide desktop menu bar on mobile */
    .desktop-menu-bar {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem 0;
    }
    
    .logo {
        order: 1;
    }
    
    .header-controls {
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .location-weather {
        order: 3;
        width: 100%;
    }
    
    .main {
        padding: 1rem 0;
    }
    
    /* Better section spacing on mobile */
    .left-column {
        gap: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .section-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* News grid improvements */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-card {
        margin-bottom: 0;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Calendar mobile improvements */
    .calendar-container {
        padding: 1rem;
    }
    
    .calendar-header {
        margin-bottom: 1rem;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        padding: 0.5rem 0.25rem;
        min-height: 35px;
        font-size: 0.85rem;
    }
    
    .event-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .event-date {
        min-width: 45px;
        font-size: 0.7rem;
        padding: 0.375rem;
    }
    
    .event-info h5 {
        font-size: 0.85rem;
    }
    
    .event-info p {
        font-size: 0.75rem;
    }
    
    /* Live chat mobile improvements */
    .live-chat {
        padding: 1rem;
    }
    
    .live-chat .chat-messages {
        max-height: 250px;
    }
    
    .chat-message {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    
    .avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .message-content p {
        font-size: 0.85rem;
        margin-top: 0.125rem;
    }
    
    .message-time {
        font-size: 0.65rem;
    }
    
    .chat-input {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
    
    .send-btn {
        padding: 0.625rem;
    }
    
    /* Centered content mobile */
    .centered-content {
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    /* FAQ mobile improvements */
    .faq-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 0.875rem;
    }
    
    .faq-answer p, .faq-answer ol, .faq-answer ul {
        margin: 0.75rem 0;
        font-size: 0.85rem;
    }
    
    /* Notification banner mobile */
    .notification-banner {
        margin-bottom: 1.5rem;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 8px;
    }
    
    .notification-content {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }
    
    .notification-content span {
        font-size: 0.9rem;
    }
    
    .notification-close {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        align-self: center;
    }
    
    /* Footer mobile improvements */
    .footer {
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding: 0.75rem 0;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* Show mobile nav on tablet and mobile */
    .mobile-nav {
        display: flex;
    }
    
    /* Mobile adjustments for modals and notifications */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.85rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .business-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    .marketplace-grid-horizontal {
        grid-template-columns: 1fr;
    }
    
    /* Mobile nav still visible */
    .mobile-nav {
        display: flex;
    }
    
    .nav-item {
        font-size: 0.7rem;
    }
    
    .nav-item i {
        font-size: 1.1rem;
    }
}

/* Popular Section - Regular Grid Layout */
.popular-section {
    margin-bottom: 2rem;
}

.marketplace-scroll-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.marketplace-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.product-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Calendar Section */
.calendar-section {
    margin-bottom: 2rem;
}

.calendar-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.calendar-day-header {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.calendar-day {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background-color: var(--bg-tertiary);
}

.calendar-day.today {
    background-color: var(--accent-primary);
    color: white;
}

.calendar-day.has-event {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.calendar-day.other-month {
    color: var(--text-secondary);
    opacity: 0.5;
}

.upcoming-events {
    margin-top: 1.5rem;
}

.upcoming-events h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.event-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.event-date {
    background-color: var(--accent-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 50px;
    height: fit-content;
}

.event-info h5 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

/* Live Chat */
.live-chat {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.live-chat h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-chat h3 i {
    color: var(--accent-primary);
}

.live-chat .chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0;
    background: none;
    border: none;
}

.message-time {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: block;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-input {
    flex: 1;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: var(--bg-secondary);
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.send-btn {
    background-color: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background-color: var(--accent-secondary);
    transform: scale(1.05);
}

/* Centered Content */
.centered-content {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

/* FAQ Section Updates */
.faq-section {
    margin-bottom: 0;
}

.faq-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Desktop Menu Bar - Much more compact */
.desktop-menu {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    gap: 0.25rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-size: 0.8rem;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.menu-item.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.menu-item i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.menu-item:hover i,
.menu-item.active i {
    transform: scale(1.05);
}

.menu-item span {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Hide desktop menu on mobile and tablet */
@media (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }
}

/* Weather bar - More compact */
.weather-bar {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.375rem 0;
}

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

.weather-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.weather-info i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.temp {
    font-weight: 600;
    font-size: 0.95rem;
}

.weather-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.location i {
    color: var(--accent-primary);
}

/* Notification banner - Much more compact */
.notification-banner {
    background: linear-gradient(135deg, var(--warning-color), #F59E0B);
    color: white;
    padding: 0.375rem 0;
    position: relative;
    overflow: hidden;
}

.notification-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2rem;
}

.notification-icon {
    animation: pulse 2s infinite;
    font-size: 0.875rem;
}

.notification-text {
    font-weight: 500;
    text-align: center;
    font-size: 0.8rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-left: auto;
    font-size: 0.8rem;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Enhanced Page Headers - Better organized */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.page-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 600;
}

.page-header h1 i {
    color: var(--accent-primary);
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    font-size: 1.5rem;
}

.page-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Enhanced News Filters - Better organized spacing */
.news-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    min-width: 300px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: var(--bg-secondary);
}

.search-box i {
    color: var(--text-secondary);
    margin-right: 0.75rem;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.search-box:focus-within i {
    color: var(--accent-primary);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    flex: 1;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* Modern News Statistics - Compact and efficient */
.news-stats-compact {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin: 0 0 1.5rem 1.5rem !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08), 
                0 3px 12px rgba(59, 130, 246, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: right !important;
    width: 320px !important;
    clear: both !important;
    position: relative !important;
    overflow: hidden !important;
}

.news-stats-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--accent-primary) 0%, 
        #10B981 33%, 
        #F59E0B 66%, 
        var(--accent-primary) 100%);
    background-size: 300% 100%;
    animation: gradientFlow 6s ease-in-out infinite;
}

.stats-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.875rem !important;
    align-items: center !important;
}

.stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.625rem !important;
    padding: 1rem 0.75rem !important;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(16, 185, 129, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12),
                0 3px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        rgba(16, 185, 129, 0.03) 100%) !important;
}

.stat-item .stat-icon {
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 50%,
        #10B981 100%) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.2),
                0 1px 6px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.stat-item .stat-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    flex: 1 !important;
}

.stat-number {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    line-height: 1 !important;
    letter-spacing: -0.025em !important;
}

.stat-label {
    font-size: 0.7rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    opacity: 0.8 !important;
}

/* Most Viewed Widget positioned under statistics */
.most-viewed-widget-compact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    float: right;
    clear: right;
    width: 320px;
    margin: 0 0 2rem 1.5rem;
}

.most-viewed-widget-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #EF4444, #F59E0B, #EF4444);
    background-size: 200% 100%;
    animation: fireGlow 3s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.most-viewed-widget-compact h3 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.most-viewed-widget-compact h3 i {
    color: #EF4444;
    animation: pulse 2s infinite;
    font-size: 1rem;
}

.viewed-articles-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.viewed-item-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.viewed-item-compact:hover {
    background: rgba(239, 68, 68, 0.08);
    transform: translateX(4px);
    border-color: rgba(239, 68, 68, 0.15);
}

.viewed-rank-compact {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.viewed-content-compact {
    flex: 1;
}

.viewed-content-compact h5 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.viewed-stats-compact {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.viewed-stats-compact i {
    color: #EF4444;
    font-size: 0.7rem;
}

/* Icon-specific gradients for visual variety */
.stat-item:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%) !important;
}

.stat-item:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
}

.stat-item:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%) !important;
}

/* Mobile responsiveness for compact layout */
@media (max-width: 1024px) {
    .news-stats-compact {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 1.25rem !important;
    }
    
    .most-viewed-widget-compact {
        float: none !important;
        width: 100% !important;
        margin: 0 0 2rem 0 !important;
        padding: 1.5rem !important;
    }
    
    .stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.875rem !important;
    }
    
    .stat-item {
        padding: 1rem 0.75rem !important;
        gap: 0.625rem !important;
    }
    
    .stat-item .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    .stat-number {
        font-size: 1rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
}

/* Mobile adjustments for improved organization */
@media (max-width: 768px) {
    /* Statistics mobile - Properly spaced */
    .news-stats-compact {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 1.25rem !important;
        border-radius: 10px !important;
    }
    
    .most-viewed-widget-compact {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 1.25rem !important;
        border-radius: 10px !important;
    }
    
    .stats-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .stat-item {
        padding: 0.875rem 0.625rem !important;
        gap: 0.5rem !important;
        border-radius: 8px !important;
    }
    
    .stat-item .stat-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        border-radius: 7px !important;
    }
    
    .stat-number {
        font-size: 0.95rem !important;
    }
    
    .stat-label {
        font-size: 0.6rem !important;
    }
    
    .most-viewed-widget-compact h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .viewed-articles-compact {
        gap: 0.875rem;
    }
    
    .viewed-item-compact {
        padding: 0.875rem;
        gap: 0.875rem;
    }
    
    .viewed-rank-compact {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .viewed-content-compact h5 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .viewed-stats-compact {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* Ultra compact statistics on small screens */
    .stats-row {
        grid-template-columns: 1fr !important;
        gap: 0.625rem !important;
    }
    
    .stat-item {
        flex-direction: row !important;
        text-align: left !important;
        padding: 0.875rem !important;
        gap: 0.875rem !important;
    }
    
    .stat-item .stat-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
    }
    
    .stat-number {
        font-size: 0.9rem !important;
    }
    
    .stat-label {
        font-size: 0.55rem !important;
    }
    
    .news-stats-compact {
        padding: 1rem !important;
        margin: 0 0 1.25rem 0 !important;
    }
    
    .most-viewed-widget-compact {
        padding: 1rem !important;
        margin: 0 0 1.25rem 0 !important;
    }
    
    .most-viewed-widget-compact h3 {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.375rem;
    }
    
    .viewed-articles-compact {
        gap: 0.75rem;
    }
    
    .viewed-item-compact {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .viewed-rank-compact {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .viewed-content-compact h5 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .viewed-stats-compact {
        font-size: 0.65rem;
    }
    
    .viewed-stats-compact i {
        font-size: 0.6rem;
    }
}

/* News Page Specific Styles */
.news-header {
    margin-bottom: 2rem;
}

.search-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 300px;
    flex: 1;
    max-width: 400px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box i {
    color: var(--text-secondary);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.search-box:focus-within i {
    color: var(--accent-primary);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    flex: 1;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.header-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.header-stats .stat-number {
    font-weight: 600;
    color: var(--accent-primary);
}

.header-stats .stat-label {
    color: var(--text-secondary);
}

.header-stats i {
    color: var(--accent-primary);
    font-size: 0.875rem;
}

/* News Content Grid */
.news-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.news-main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* News Tabs */
.news-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.tab-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Main Story Card */
.main-story-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-story-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: var(--accent-primary);
    color: white;
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.badge-region {
    background: var(--warning-color);
    color: white;
}

.badge-category {
    background: var(--success-color);
    color: white;
}

.badge-subcategory {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.story-content {
    padding: 1.5rem;
}

.story-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.meta-left, .meta-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.meta-left span, .meta-right span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-right i {
    color: var(--accent-primary);
}

/* Articles Section */
.articles-section {
    margin-bottom: 2rem;
}

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

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

.clear-filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.clear-filter-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

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

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.article-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-meta .meta-right {
    gap: 0.75rem;
}

.article-meta i {
    font-size: 0.7rem;
    color: var(--accent-primary);
}

/* Today's Stats Card */
.todays-stats-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.stats-content {
    text-align: center;
}

.stats-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stats-header i {
    color: var(--accent-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* News Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-widget h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget h3 i {
    color: var(--accent-primary);
}

/* Most Viewed List */
.most-viewed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.viewed-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.viewed-item:hover {
    background: var(--border-color);
    transform: translateX(4px);
}

.rank {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-category {
    font-size: 0.7rem;
    color: var(--accent-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
    display: block;
}

.item-content h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-views {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.item-views i {
    color: var(--accent-primary);
    font-size: 0.7rem;
}

/* Regions List */
.regions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.region-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.region-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: var(--bg-tertiary);
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    position: relative;
}

.region-item input[type="checkbox"]:checked {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.region-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.region-item label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.region-item label:hover {
    color: var(--accent-primary);
}

.new-articles {
    font-size: 0.7rem;
    color: var(--error-color);
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Newsletter Form */
.sidebar-widget p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

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

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-links span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

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

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .news-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .header-stats {
        display: none;
    }
    
    .search-stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-stats-container {
        padding: 1rem;
    }
    
    .news-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .news-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.625rem 1rem;
    }
    
    .story-content {
        padding: 1.25rem;
    }
    
    .story-content h2 {
        font-size: 1.25rem;
    }
    
    .story-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-card {
        flex-direction: row;
    }
    
    .article-image {
        width: 120px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-content h4 {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .article-content p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-group {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .most-viewed-list {
        gap: 0.75rem;
    }
    
    .viewed-item {
        padding: 0.75rem;
    }
    
    .item-content h4 {
        font-size: 0.8rem;
    }
    
    .newsletter-form {
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem 0;
    }
    
    .news-header {
        margin-bottom: 1.5rem;
    }
    
    .story-image {
        height: 200px;
    }
    
    .story-badges {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.125rem 0.5rem;
    }
    
    .story-content {
        padding: 1rem;
    }
    
    .story-content h2 {
        font-size: 1.1rem;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 150px;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .viewed-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .rank {
        align-self: center;
    }
    
    .regions-list {
        gap: 0.5rem;
    }
}

/* Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 90vh;
    overflow: hidden;
}

/* Modal Article Section */
.modal-article {
    padding: 2rem;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

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

.article-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.article-info h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-info .article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-info .article-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-info .article-meta i {
    color: var(--accent-primary);
}

.article-body {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

/* Modal Comments Section */
.modal-comments {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-tertiary);
}

.comments-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.comments-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.comments-header i {
    color: var(--accent-primary);
}

.comment-form {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-input-area {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.user-avatar, .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.comment-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.comment-submit {
    background: var(--accent-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.comment-submit:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-avatar {
    width: 32px;
    height: 32px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.comment-header strong {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.comment-content p {
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-number {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-number:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

.page-number.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 0 0.5rem;
    font-size: 0.875rem;
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Enhanced Interactive Elements */
.article-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.main-story-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.viewed-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewed-item:hover {
    background: var(--border-color);
    transform: translateX(8px);
}

/* Enhanced Language Toggle */
.language-toggle {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

/* Enhanced Theme Toggle */
.theme-toggle {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.theme-toggle:hover::before {
    left: 100%;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    transform: scale(1.05) rotate(180deg);
}

/* Enhanced Tab Buttons */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* Mobile Responsive Design for Modal */
@media (max-width: 1024px) {
    .modal-content {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 90vh;
    }
    
    .modal-article {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 60vh;
    }
    
    .modal-comments {
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-article {
        padding: 1.5rem;
    }
    
    .article-info h1 {
        font-size: 1.5rem;
    }
    
    .article-header img {
        height: 200px;
    }
    
    .article-info .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comments-header,
    .comment-form {
        padding: 1rem;
    }
    
    .comments-list {
        padding: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .page-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-article {
        padding: 1rem;
    }
    
    .article-info h1 {
        font-size: 1.25rem;
    }
    
    .article-header img {
        height: 150px;
    }
    
    .comment-input-area {
        gap: 0.5rem;
    }
    
    .user-avatar,
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-submit {
        width: 36px;
        height: 36px;
    }
    
    .page-numbers {
        display: none;
    }
    
    .pagination {
        justify-content: space-between;
        width: 100%;
    }
    
    .page-btn {
        flex: 1;
        justify-content: center;
        max-width: 45%;
    }
}

/* Light Theme Support */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;
    --border-color: #E2E8F0;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
}

[data-theme="light"] .modal-close {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

[data-theme="light"] .modal-close:hover {
    background: rgba(255, 255, 255, 1);
}

[data-theme="light"] .article-modal {
    background: rgba(0, 0, 0, 0.5);
}

/* Improved Accessibility */
.article-card:focus,
.main-story-card:focus,
.viewed-item:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.modal-close:focus,
.comment-submit:focus,
.page-btn:focus,
.page-number:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Compact Calendar Styles */
.calendar-container-compact {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-header-compact h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.calendar-nav-compact {
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-compact:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

.calendar-grid-compact {
    margin-bottom: 1.5rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-compact {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: var(--background-secondary);
    color: var(--text-primary);
}

.calendar-day-compact:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.calendar-day-compact.today {
    background: var(--accent-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--accent-secondary);
}

.calendar-day-compact.has-event {
    background: var(--accent-secondary);
    color: white;
}

.calendar-day-compact.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.calendar-day-compact.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.upcoming-events-compact {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.upcoming-events-compact h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upcoming-events-compact h4 i {
    color: var(--accent-primary);
}

.event-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-item-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.event-item-compact:hover {
    background: var(--card-background);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-date-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    padding: 0.5rem;
    background: var(--accent-primary);
    border-radius: 6px;
    color: white;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.event-info-compact {
    flex: 1;
    min-width: 0;
}

.event-info-compact h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.event-info-compact p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-info-compact p i {
    color: var(--accent-primary);
    width: 12px;
}

.event-category-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-category-tag.community {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.event-category-tag.culture {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.event-category-tag.business {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.event-category-tag.entertainment {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

/* Responsive adjustments for compact calendar */
@media (max-width: 768px) {
    .calendar-container-compact {
        padding: 1rem;
    }
    
    .calendar-header-compact h3 {
        font-size: 1rem;
    }
    
    .calendar-nav-compact {
        width: 28px;
        height: 28px;
    }
    
    .weekday {
        font-size: 0.7rem;
        padding: 6px 2px;
    }
    
    .calendar-day-compact {
        font-size: 0.8rem;
    }
    
    .event-item-compact {
        gap: 0.75rem;
        padding: 0.5rem;
    }
    
    .event-date-compact {
        min-width: 35px;
        padding: 0.4rem;
    }
    
    .event-day {
        font-size: 1rem;
    }
    
    .event-month {
        font-size: 0.65rem;
    }
    
    .event-info-compact h5 {
        font-size: 0.85rem;
    }
    
    .event-info-compact p {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    .event-category-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .event-item-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .event-date-compact {
        align-self: flex-start;
    }
    
    .event-category-tag {
        align-self: flex-end;
    }
}

/* Mini Calendar Styles - Much Smaller and Simpler */
.calendar-mini {
    background: var(--card-background);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    max-width: 280px;
    margin: 0 auto;
}

.calendar-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.calendar-mini-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-mini-nav {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.calendar-mini-nav:hover {
    background: var(--background-secondary);
}

.calendar-mini-grid {
    font-size: 0.75rem;
}

.mini-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.25rem;
}

.mini-weekdays span {
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem;
    font-size: 0.7rem;
}

.mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day-mini {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--background-secondary);
    color: var(--text-primary);
}

.calendar-day-mini:hover {
    background: var(--accent-primary);
    color: white;
}

.calendar-day-mini.today {
    background: var(--accent-primary);
    color: white;
    font-weight: 700;
}

.calendar-day-mini.has-event {
    background: var(--accent-secondary);
    color: white;
}

.calendar-day-mini.other-month {
    color: var(--text-muted);
    opacity: 0.3;
}

.events-mini-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.event-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.event-mini:last-child {
    border-bottom: none;
}

.event-mini-date {
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 45px;
    font-size: 0.75rem;
}

.event-mini-title {
    color: var(--text-primary);
    flex: 1;
}

/* Responsive - Even smaller on mobile */
@media (max-width: 768px) {
    .calendar-mini {
        padding: 0.75rem;
        max-width: 240px;
    }
    
    .calendar-mini-header span {
        font-size: 0.8rem;
    }
    
    .mini-weekdays span {
        font-size: 0.65rem;
        padding: 0.2rem;
    }
    
    .calendar-day-mini {
        font-size: 0.65rem;
    }
    
    .event-mini {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .event-mini-date {
        font-size: 0.7rem;
        min-width: 40px;
    }
}

/* Calendar Widget - Same size as chat */
.calendar-widget {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.calendar-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.calendar-widget-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-widget-header h3 i {
    color: var(--accent-primary);
}

.calendar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.calendar-widget-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.calendar-widget-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-widget-nav span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-widget-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.calendar-widget-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

.calendar-widget-grid {
    margin-bottom: 1rem;
    overflow: hidden;
}

.widget-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.widget-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem;
}

.widget-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    max-height: 180px;
    overflow: hidden;
}

.calendar-day-widget {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    position: relative;
    min-height: 24px;
    max-height: 28px;
}

.calendar-day-widget:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

.calendar-day-widget.today {
    background: var(--accent-primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 0 2px var(--accent-secondary);
}

.calendar-day-widget.has-event {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/*
.calendar-day-widget.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}
*/

.calendar-day-widget.has-event.community {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.calendar-day-widget.has-event.culture {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.calendar-day-widget.has-event.business {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.calendar-day-widget.has-event.entertainment {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.calendar-day-widget.other-month {
    color: var(--text-secondary);
    opacity: 0.3;
}

.upcoming-events-widget {
    display: none;
}

.upcoming-events-widget h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.events-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-widget-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-widget-item:hover {
    background: var(--border-color);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-widget-item.community {
    border-left-color: #22c55e;
}

.event-widget-item.culture {
    border-left-color: #a855f7;
}

.event-widget-item.business {
    border-left-color: #3b82f6;
}

.event-widget-item.entertainment {
    border-left-color: #f59e0b;
}

.event-widget-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.event-widget-day {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.event-widget-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-widget-info {
    flex: 1;
    min-width: 0;
}

.event-widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.event-widget-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
}

.event-widget-category {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-widget-category.community {
    background: #22c55e;
}

.event-widget-category.culture {
    background: #a855f7;
}

.event-widget-category.business {
    background: #3b82f6;
}

.event-widget-category.entertainment {
    background: #f59e0b;
}

/* Event Details View */
.event-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

.event-details-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.event-details-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--accent-primary);
    border-radius: 8px;
    color: white;
    min-width: 60px;
}

.event-details-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.event-details-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-details-info {
    flex: 1;
}

.event-details-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.event-details-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.event-details-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details-meta i {
    color: var(--accent-primary);
    width: 12px;
}

.event-details-description {
    flex: 1;
    overflow-y: auto;
}

.event-details-description p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-widget {
        height: 350px;
        padding: 1rem;
    }
    
    .calendar-widget-header h3 {
        font-size: 1rem;
    }
    
    .widget-weekdays span {
        font-size: 0.7rem;
        padding: 0.2rem;
    }
    
    .calendar-day-widget {
        font-size: 0.75rem;
    }
    
    .event-widget-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .event-widget-title {
        font-size: 0.8rem;
    }
    
    .event-widget-time {
        font-size: 0.65rem;
    }
}

/* Businesses Page Styles */
.businesses-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.business-controls {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-section .search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.search-section .search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-section .search-box i {
    color: var(--text-secondary);
    margin-right: 0.75rem;
}

.search-section .search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    font-size: 0.9rem;
}

.search-section .search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    margin-left: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

.filter-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.action-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.action-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-businesses {
    margin-bottom: 3rem;
}

.featured-businesses h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-businesses h2 i {
    color: var(--warning-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.business-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.business-card.featured {
    border: 2px solid var(--warning-color);
    position: relative;
}

.business-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--warning-color), #F59E0B, var(--warning-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.business-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.business-badge {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-status {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.business-status.open {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.business-status.closed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.business-content {
    padding: 1.5rem;
}

.business-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.business-category {
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.business-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.business-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-item i {
    color: var(--accent-primary);
    width: 16px;
    text-align: center;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: var(--warning-color);
    font-size: 0.875rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.business-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.business-actions .action-btn {
    flex: 1;
    min-width: 100px;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
}

/* All Businesses Section */
.all-businesses {
    margin-top: 3rem;
}

.all-businesses h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.all-businesses h2 i {
    color: var(--accent-primary);
}

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

.business-card-compact {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.business-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.business-card-compact .business-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0;
    background: none;
    border: none;
}

.business-card-compact .business-logo {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
}

.business-card-compact .business-info-header {
    flex: 1;
}

.business-card-compact .business-info-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.business-card-compact .business-category {
    margin: 0;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .business-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .businesses-page-container {
        padding: 1rem;
    }
    
    .business-controls {
        padding: 1.5rem;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-select {
        min-width: unset;
    }
    
    .business-actions {
        flex-direction: column;
    }
    
    .business-actions .action-btn {
        flex: none;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .business-card {
        margin: 0;
    }
    
    .business-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .business-logo {
        align-self: center;
    }
}

/* Calendar Page Styles */
.calendar-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.calendar-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 0.25rem;
}

.view-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.view-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.nav-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

#currentPeriod {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.calendar-actions {
    display: flex;
    gap: 0.75rem;
}

.calendar-actions .action-btn {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.event-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.category-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.category-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.category-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.calendar-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-view {
    padding: 2rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1px;
}

.day-header {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: var(--bg-secondary);
    min-height: 120px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--accent-primary);
}

.calendar-day.other-month {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    opacity: 0.5;
}

.day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.event-dot {
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-dot:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-dot.community {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.event-dot.business {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.event-dot.culture {
    background: rgba(168, 85, 247, 0.2);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.event-dot.sports {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.event-dot.education {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Week View */
.week-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1px;
}

.time-column {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.day-column {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.week-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

/* Day View */
.day-header-full {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.day-header-full h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.day-schedule {
    padding: 2rem;
}

/* Upcoming Events */
.upcoming-events {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.upcoming-events h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upcoming-events h2 i {
    color: var(--accent-primary);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.9;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-info p:last-child {
    margin-bottom: 0;
    margin-top: 0.5rem;
    font-style: italic;
}

.event-info i {
    color: var(--accent-primary);
    width: 14px;
}

.event-category {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-category.community {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.event-category.business {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.event-category.culture {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid #a855f7;
}

.event-category.sports {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.event-category.education {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .calendar-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .calendar-navigation {
        order: 1;
    }
    
    .view-controls {
        order: 2;
        justify-content: center;
    }
    
    .calendar-actions {
        order: 3;
        justify-content: center;
    }
    
    .event-categories {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .calendar-page-container {
        padding: 1rem;
    }
    
    .calendar-controls {
        padding: 1rem;
    }
    
    .event-categories {
        padding: 1rem;
    }
    
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .calendar-view {
        padding: 1rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .event-dot {
        font-size: 0.65rem;
        padding: 0.125rem 0.375rem;
    }
    
    .event-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .event-date {
        justify-self: center;
        min-width: 70px;
    }
    
    .event-category {
        justify-self: center;
    }
    
    .upcoming-events {
        padding: 1.5rem;
    }
    
    .upcoming-events h2 {
        font-size: 1.25rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .view-controls {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .view-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .calendar-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.375rem;
    }
    
    .event-info h3 {
        font-size: 1rem;
    }
    
    .event-info p {
        font-size: 0.8rem;
    }
}

/* Chat Page Styles */
.chat-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    flex: 1;
    min-height: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-sidebar {
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-rooms {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-rooms h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.room-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.room-item:hover {
    background: var(--bg-secondary);
}

.room-item.active {
    background: var(--accent-primary);
    color: white;
}

.room-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.room-item.active .room-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.room-info h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.room-item.active .room-info h4 {
    color: white;
}

.room-info p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0;
}

.unread-count {
    background: var(--error-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.online-users {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.online-users h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-item:hover {
    background: var(--bg-secondary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.username {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
}

.user-status {
    color: var(--text-secondary);
    font-size: 0.75rem;
    display: block;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background: var(--success-color);
}

.status-indicator.away {
    background: var(--warning-color);
}

.status-indicator.typing {
    background: var(--accent-primary);
    animation: pulse 1.5s infinite;
}

.chat-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.room-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.room-title h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.member-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
}

.message-group {
    margin-bottom: 1.5rem;
}

.message-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.message-header .username {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.message-text {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.chat-input-container {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-input-area {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    resize: none;
    min-height: 50px;
    max-height: 120px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.send-message-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-message-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

/* Marketplace Page Styles */
.marketplace-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.marketplace-controls {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.featured-listings {
    margin-bottom: 3rem;
}

.featured-listings h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-listings h2 i {
    color: var(--warning-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.listing-card.featured {
    border: 2px solid var(--warning-color);
    position: relative;
}

.listing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--warning-color), #F59E0B, var(--warning-color));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.listing-image {
    position: relative;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.listing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-content {
    padding: 1.5rem;
}

.listing-content h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.listing-price {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.listing-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.listing-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.listing-meta i {
    color: var(--accent-primary);
}

.listing-seller {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin: -0.5rem -0.5rem 0;
}

.seller-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.listing-seller span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    flex: 1;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--warning-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.seller-rating i {
    font-size: 0.75rem;
}

/* All Listings */
.all-listings {
    margin-top: 3rem;
}

.all-listings h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.all-listings h2 i {
    color: var(--accent-primary);
}

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

.listings-grid .listing-card {
    border: 1px solid var(--border-color);
}

.listings-grid .listing-image {
    height: 160px;
}

.listings-grid .image-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.listings-grid .listing-content {
    padding: 1.25rem;
}

.listings-grid .listing-content h3 {
    font-size: 1rem;
}

.listings-grid .listing-price {
    font-size: 1.125rem;
}

.listings-grid .listing-seller {
    margin: 0 -0.25rem -0.25rem;
    padding: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .marketplace-controls {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .listings-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .marketplace-page-container {
        padding: 1rem;
    }
    
    .marketplace-controls {
        padding: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-card {
        margin: 0;
    }
    
    .listing-image {
        height: 180px;
    }
    
    .listing-content {
        padding: 1.25rem;
    }
    
    .listing-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .listing-seller {
        margin: 0 -0.25rem -0.25rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .listing-image {
        height: 150px;
    }
    
    .image-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .listing-content {
        padding: 1rem;
    }
    
    .listing-content h3 {
        font-size: 0.95rem;
    }
    
    .listing-price {
        font-size: 1rem;
    }
    
    .listing-description {
        font-size: 0.8rem;
    }
    
    .listing-meta {
        font-size: 0.75rem;
    }
    
    .listing-seller {
        padding: 0.75rem;
    }
    
    .seller-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .listing-seller span {
        font-size: 0.8rem;
    }
    
    .seller-rating {
        font-size: 0.75rem;
    }
}