/*
Theme Name: NYCLogix Custom
Description: A custom, lightweight theme built specifically for the NYC News + Tools Platform.
Author: Antigravity
Version: 1.0
*/

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #e63946; /* Red for accents and ticker */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* Accessibility Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

a:hover {
    color: var(--secondary-color);
}

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

/* Header */
.site-header {
    background: #0f172a; /* Dark Slate to match footer */
    border-bottom: 1px solid #1e293b;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.site-nav a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #cbd5e1 !important; /* Light slate text for nav */
}
.site-nav a:hover {
    color: #00E5FF !important; /* Cyan hover */
}
.site-nav a.btn-pulse-glow {
    color: #000 !important; /* Keep dashboard button text dark/visible */
}

/* Ticker */
.news-ticker {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Cards */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}

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

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-meta {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-top: 5px;
}

/* Specific Sections */
.section-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

@keyframes blinkLive {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); box-shadow: 0 0 10px red; }
    100% { opacity: 1; transform: scale(1); }
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230, 57, 70, 0.1);
    color: #e63946;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    margin-left: 15px;
    vertical-align: middle;
}
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #e63946;
    border-radius: 50%;
    display: inline-block;
    animation: blinkLive 1.5s infinite ease-in-out;
}

.mamdani-section {
    background: #fff;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--border-color);
}
.mamdani-section .section-title {
    border-bottom-color: var(--secondary-color);
}

/* Tools */
.tool-card {
    background: #e9ecef;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}
.tool-card:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Hero */
.hero-section {
    margin: 40px 0;
}
.featured-post img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}
.featured-post h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}
.site-footer a {
    color: #ccc;
    margin: 0 10px;
}

/* Side Menu (Hamburger) */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 40px;
    overflow-y: auto;
}
.side-menu.open {
    right: 0;
}
.close-btn {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--text-color);
}
.side-menu-links {
    list-style: none;
    margin-top: 30px;
}
.side-menu-links li {
    margin-bottom: 20px;
}
.side-menu-links a {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    display: block;
}
.side-menu-links a:hover {
    color: var(--secondary-color);
}

/* Premium Tool Cards */
.premium-tool-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.premium-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: transparent;
}

.premium-tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e63946, #f4a261);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-tool-card:hover::before {
    opacity: 1;
}

.ptc-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.premium-tool-card:hover .ptc-icon {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.05);
}

.ptc-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.ptc-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ptc-arrow {
    margin-top: auto;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.premium-tool-card:hover .ptc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   AI Content Refinery - Responsive UI Classes
   ========================================================================== */
.nyclogix-cta-box {
    margin-top: 40px; 
    padding: 25px; 
    background: #f8f9fa; 
    border-radius: 12px; 
    text-align: center; 
    border: 1px solid #e9ecef;
}
.nyclogix-cta-buttons {
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-wrap: wrap;
}
.nyclogix-cta-btn {
    padding: 12px 25px; 
    text-decoration: none; 
    border-radius: 30px; 
    font-weight: bold; 
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}
.nyclogix-cta-btn.primary {
    background: linear-gradient(135deg, #0077FF, #00E5FF); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}
.nyclogix-cta-btn.secondary {
    background: #222; 
    color: #fff; 
}

/* Responsive 16:9 YouTube Wrapper */
.nyclogix-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #000;
}
.nyclogix-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Mobile Responsiveness (Media Queries)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* Custom Mobile Header Row */
    .header-inner {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 5px 0;
    }
    .site-title {
        font-size: 18px !important;
    }
    .site-nav {
        display: none !important; /* Hide desktop nav */
    }
    .header-search {
        display: none !important; /* Hide search */
    }
    .mobile-search-bar {
        display: block !important;
    }
    .mobile-dashboard-btn {
        display: inline-block !important; /* Show dashboard in middle */
    }
    .header-right-actions {
        gap: 10px !important;
    }
    #nyc-weather-badge {
        padding: 4px 6px !important;
        background: transparent !important;
        border: none !important;
    }
    #weather-temp {
        display: none !important; /* Hide text, keep icon */
    }
    #weather-icon {
        font-size: 20px !important;
    }
    #hamburger-btn {
        font-size: 24px !important;
    }
    
    /* Typography */
    .hero-section h2 {
        font-size: 26px;
    }
    .section-title {
        font-size: 20px;
    }

    /* Grids to 1-Column */
    .grid-cols-2, 
    .grid-cols-4, 
    .grid-cols-5 {
        grid-template-columns: 1fr;
    }

    /* Paddings */
    .mamdani-section {
        padding: 20px;
        margin: 20px 0;
    }
    .premium-tool-card {
        padding: 20px;
    }

    /* Images */
    .featured-post img {
        height: 250px;
    }
    
    /* Plugin UI */
    .nyclogix-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .nyclogix-cta-btn {
        width: 100%;
    }
}
