/* ============================================
   Long Island Today (LIT) - Main Stylesheet
   Brand Color: Orange #E86A33
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors */
    --primary: #E86A33;
    --primary-dark: #d35a24;
    --primary-light: #f5a882;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #000000;
    
    /* Semantic Colors */
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md) 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.75rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    display: none;
}

@media (min-width: 768px) {
    .logo-tagline {
        display: block;
    }
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

@media (min-width: 900px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
    display: flex;
}

@media (min-width: 900px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-tiktok {
    background: var(--black);
    color: var(--white);
}

.btn-tiktok:hover {
    background: var(--gray-800);
}

.header .btn {
    display: none;
}

@media (min-width: 900px) {
    .header .btn {
        display: inline-flex;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
    color: var(--white);
    padding: var(--space-3xl) 0;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-date {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.85;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.see-all {
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.see-all:hover {
    color: var(--primary-dark);
}

/* ============================================
   Events Grid
   ============================================ */
.events-section {
    background: var(--gray-50);
}

.events-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.event-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.event-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: var(--gray-200);
}

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

.event-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-md);
    z-index: 2;
}

.event-badge {
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.event-category {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.event-content {
    padding: var(--space-lg);
}

.event-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
    line-height: 1.3;
}

.event-venue,
.event-time {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xs);
}

.event-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

/* ============================================
   Good News Grid
   ============================================ */
.news-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .news-card.featured {
        grid-row: span 2;
    }
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.news-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: var(--gray-200);
}

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

.news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-start;
    padding: var(--space-md);
    z-index: 2;
}

.news-category {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.news-content {
    padding: var(--space-lg);
}

.news-category-inline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.featured .news-title {
    font-size: 1.25rem;
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.news-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ============================================
   Weekend Preview
   ============================================ */
.weekend-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.weekend-preview {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .weekend-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

.weekend-day {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.day-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--primary);
}

.weekend-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.weekend-event {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.event-time-pill {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    min-width: 60px;
    text-align: center;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-info strong {
    font-weight: 600;
    color: var(--gray-800);
}

.event-info span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   TikTok Section
   ============================================ */
.tiktok-section {
    background: var(--gray-900);
    color: var(--white);
}

.tiktok-section .section-title,
.tiktok-section .section-subtitle {
    color: var(--white);
}

.tiktok-section .section-subtitle {
    opacity: 0.7;
}

.tiktok-container {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 768px) {
    .tiktok-container {
        grid-template-columns: 1fr 2fr;
    }
}

.tiktok-embed-placeholder {
    text-align: center;
    padding: var(--space-xl);
}

.tiktok-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    color: var(--white);
}

.tiktok-embed-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.tiktok-embed-placeholder p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.tiktok-feed {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(3, 1fr);
}

.tiktok-placeholder-card {
    aspect-ratio: 9/16;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tiktok-placeholder-card p {
    color: var(--gray-500);
    font-size: 0.75rem;
    position: relative;
    z-index: 1;
}

.placeholder-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        var(--gray-800) 0%,
        var(--gray-700) 50%,
        var(--gray-800) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
    background: var(--primary);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.newsletter-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 500px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    background: var(--white);
    color: var(--gray-800);
}

.newsletter-input::placeholder {
    color: var(--gray-400);
}

.newsletter-form .btn {
    background: var(--gray-900);
}

.newsletter-form .btn:hover {
    background: var(--black);
}

.newsletter-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

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

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .event-card,
    .news-card,
    .btn {
        transition: transform var(--transition-base), box-shadow var(--transition-base);
    }
}

/* ============================================
   Dark Mode Support (Future)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later */
}
