/* ============================================
   STAR PUBLICATIONS - DARK LUXURY THEME
   Clean, Sophisticated, Premium Editorial
   ============================================ */

/* CSS Variables */
:root {
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-elevated: #22222e;
    
    /* Accent Colors */
    --gold: #c9a962;
    --gold-light: #e8d5a3;
    --gold-dark: #a08540;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-subtle: rgba(255, 255, 255, 0.3);
    
    /* Border Colors */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', 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;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10000;
    transition: top var(--transition-base);
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-accent);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background: transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-logo img {
    height: 42px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-accent);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--transition-base);
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ============================================
   BREAKING BAR
   ============================================ */

.breaking-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 999;
    overflow: hidden;
}

.breaking-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 1.25rem;
    background: var(--gold);
    color: var(--bg-primary);
    font-family: var(--font-accent);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.breaking-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.breaking-content::before,
.breaking-content::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.breaking-content::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.breaking-content::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.breaking-items {
    display: flex;
    gap: 3rem;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    padding: 0 2rem;
}

.breaking-bar:hover .breaking-items {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.breaking-items a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.breaking-items a:hover {
    color: var(--gold);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.4) 0%,
        rgba(10, 10, 15, 0.6) 50%,
        rgba(10, 10, 15, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
    padding-top: 120px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

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

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: var(--space-5xl) 0;
}

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

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
}

.section-title.centered {
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 0.75rem;
}

.section-title.centered::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.section-link {
    font-family: var(--font-accent);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-base);
}

.section-link:hover {
    gap: 0.75rem;
}

/* ============================================
   FEATURED STORIES
   ============================================ */

.featured-section {
    background: var(--bg-primary);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* Main Featured Card */
.featured-main .featured-card {
    display: block;
    height: 100%;
}

.featured-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 2px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-card:hover .featured-image img {
    transform: scale(1.03);
}

.featured-content {
    padding-top: 1.5rem;
}

.featured-category {
    font-family: var(--font-accent);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
}

.featured-headline {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.75rem 0;
    line-height: 1.3;
    transition: color var(--transition-base);
}

.featured-card:hover .featured-headline {
    color: var(--gold);
}

.featured-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.featured-author {
    color: var(--text-secondary);
}

/* Side Cards */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-card a {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.side-card a:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.side-image {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.side-content {
    flex: 1;
}

.side-category {
    font-family: var(--font-accent);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.side-content h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0.5rem 0;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.side-card:hover h4 {
    color: var(--gold);
}

.side-content time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   CATEGORIES
   ============================================ */

.categories-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    text-align: center;
    transition: all var(--transition-base);
}

.category-item:hover {
    border-color: var(--gold);
    background: var(--bg-elevated);
}

.category-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   STATISTICS
   ============================================ */

.stats-section {
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.stats-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.stats-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

.stats-numbers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
}

.stat-label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TEAM
   ============================================ */

.team-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    transition: border-color var(--transition-base);
}

.team-member:hover .team-photo {
    border-color: var(--gold);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
    background: var(--bg-primary);
    padding-bottom: var(--space-5xl);
}

.newsletter-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    padding: 4rem;
    text-align: center;
}

.newsletter-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin: 0.75rem auto 0;
}

.newsletter-text {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.75rem;
}

.form-group input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-primary);
    transition: border-color var(--transition-base);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    font-family: var(--font-accent);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

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

.footer-column a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.legal-links a:hover {
    color: var(--gold);
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats-description {
        margin: 0 auto;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .breaking-bar {
        top: 70px;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-numbers {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .newsletter-box {
        padding: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-numbers {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
