/*
Theme Name: WOCOO News
Description: Professional news platform theme for verified journalism
Version: 2.0
Author: WOCOO Team
Text Domain: wocoo-news
*/

/* ============================================================
   FOUNDATION — resets, variables, typography
   Section-specific styling lives in custom.css
   ============================================================ */

:root {
    --wocoo-magenta: #E91E63;
    --wocoo-green: #4CAF50;
    --wocoo-orange: #FF9800;
    --wocoo-blue: #2196F3;
    --wocoo-navy: #1A237E;
    --wocoo-light-grey: #F8F9FA;
    --wocoo-white: #FFFFFF;
    --wocoo-dark: #2c3e50;
    --wocoo-text: #333333;
    --wocoo-text-light: #6c757d;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--wocoo-text);
    background-color: var(--wocoo-white);
}

/* WordPress Core Classes */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: var(--wocoo-text-light); }

.entry-content img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WordPress required empty classes */
.sticky {}
.bypostauthor {}


/* ============================================================
   HEADER — shared across all pages
   ============================================================ */

.header {
    background: var(--wocoo-white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-text .w  { color: var(--wocoo-magenta); }
.logo-text .o1 { color: var(--wocoo-green); }
.logo-text .c  { color: var(--wocoo-orange); }
.logo-text .o2 { color: var(--wocoo-blue); }
.logo-text .o3 { color: var(--wocoo-navy); }

/* Navigation */
.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--wocoo-text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--wocoo-magenta);
}

/* Header CTA */
.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.support-btn {
    background: var(--wocoo-magenta);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    background: #C2185B;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--wocoo-text);
    margin: 3px 0;
    transition: 0.3s;
}


/* ============================================================
   LAYOUT — container, main content
   ============================================================ */

.main-content {
    min-height: calc(100vh - 200px);
}

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


/* ============================================================
   HERO CAROUSEL — kept here because carousel.js depends on it
   ============================================================ */

.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide-background.default-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.slide-subtitle {
    font-size: 1.2rem;
    color: var(--wocoo-magenta);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 4;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--wocoo-magenta);
    transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 4;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


/* ============================================================
   FORMS — shared across pages (registration, contact, etc.)
   ============================================================ */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--wocoo-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--wocoo-magenta);
}

.form-submit {
    background: var(--wocoo-magenta);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover {
    background: #C2185B;
    transform: translateY(-2px);
}


/* ============================================================
   RESPONSIVE — mobile breakpoints
   ============================================================ */

@media (max-width: 768px) {
    .header-nav .nav-menu {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu open state */
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 0.5rem;
    }

    .header-cta.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 120px);
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .hero-carousel {
        height: 80vh;
        min-height: 500px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1.2rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-nav {
        padding: 0 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .slide-content {
        padding: 0 1rem;
    }
}


/* ============================================================
   ADMIN BAR ADJUSTMENT
   ============================================================ */

.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}