/* ============================================
   PLASTIC PARTY - HOMEPAGE STYLES
   ============================================ */

:root {
    --military-dark: #2c3e50;
    --military-grey: #34495e;
    --metal-grey: #7f8c8d;
    --metal-light: #95a5a6;
    --military-blue: #5d8aa8;
    --military-orange: #e67e22;
    --military-green: #27ae60;
    --accent-cyan: #3498db;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}

.navbar-brand:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,0.5));
    transform: scale(1.05);
}

.navbar-brand.has-logo span {
    display: none;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navbar-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    transition: all 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--military-orange);
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #1a1a2e);
    pointer-events: none;
}

/* QUICK ACTIONS */
.quick-actions {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c3e50 100%);
    padding: 2.5rem 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

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

.quick-actions .btn {
    min-width: 220px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

/* SECTIONS */
.section {
    background: #1a1a2e;
    color: white;
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: white;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--military-orange);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--metal-light);
    margin-top: 1.5rem;
}

/* CARDS */
.card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%);
    border: 2px solid rgba(93, 138, 168, 0.3);
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--military-blue);
    box-shadow: 0 10px 30px rgba(93, 138, 168, 0.3);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 2px solid rgba(93, 138, 168, 0.2);
    background: rgba(0,0,0,0.2);
}

.card-title {
    color: var(--military-orange);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.card-body p {
    margin-bottom: 0.875rem;
    line-height: 1.7;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body strong {
    color: white;
    font-weight: 700;
    min-width: 100px;
    flex-shrink: 0;
    font-size: 1rem;
}

.card-body span {
    flex: 1;
}

.card-body a {
    color: var(--accent-cyan);
    text-decoration: underline;
    transition: all 0.2s;
}

.card-body a:hover {
    color: var(--military-orange);
}

/* REGISTRATION STATUS */
.registration-status {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.registration-status.open {
    background: linear-gradient(135deg, var(--military-green), #2ecc71);
    color: white;
}

.registration-status.soon {
    background: linear-gradient(135deg, var(--military-orange), #f39c12);
    color: white;
}

.registration-status.closed {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* CATEGORY CARDS */
.category-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    border: 2px solid rgba(93, 138, 168, 0.3);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--military-blue);
    box-shadow: 0 10px 30px rgba(93, 138, 168, 0.3);
}

.category-code {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--military-orange);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.category-name {
    font-size: 1.125rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.category-details {
    color: var(--accent-cyan);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.category-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

/* MAP */
.map-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--military-blue);
    box-shadow: 0 10px 40px rgba(93, 138, 168, 0.4);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* PROGRAM */
.program-timeline {
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--military-orange);
    max-width: 800px;
    margin: 0 auto;
}

.program-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.program-item:hover {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--military-orange);
}

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

.program-time {
    font-weight: 700;
    color: var(--military-orange);
    min-width: 120px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.program-desc {
    color: rgba(255,255,255,0.9);
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
}

/* Plain text program fallback */
.program-timeline > p {
    color: rgba(255,255,255,0.9);
    font-size: 1.0625rem;
    line-height: 2;
    white-space: pre-line;
    margin: 0;
}

/* BUTTONS */
.btn {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.875rem 1.75rem;
    border: 2px solid;
    transition: all 0.3s;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--military-blue), var(--accent-cyan));
    border-color: transparent;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(93, 138, 168, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .navbar-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .navbar-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .navbar-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .navbar-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .navbar-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .navbar-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .navbar-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .navbar-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .navbar-menu a {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
        display: block;
        text-align: center;
        border-radius: 8px;
        transition: all 0.2s;
    }
    
    .navbar-menu a:hover {
        background: rgba(93, 138, 168, 0.2);
    }
    
    .navbar-menu a.active {
        color: var(--military-orange);
        background: rgba(230, 126, 34, 0.15);
    }
    
    .navbar-actions {
        display: none;
    }
    
    .navbar-actions.mobile-visible {
        position: fixed;
        bottom: 3rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 1rem;
        z-index: 1001;
        opacity: 0;
        animation: fadeInUp 0.3s ease forwards;
        animation-delay: 0.4s;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .program-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .program-time {
        min-width: auto;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .quick-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .navbar-menu a {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-actions.mobile-visible {
        bottom: 2rem;
        flex-direction: column;
        width: calc(100% - 2rem);
        left: 1rem;
        transform: none;
    }
    
    .navbar-actions.mobile-visible .btn {
        width: 100%;
        text-align: center;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}