/* KERR 119 - Styles matching New Clear Films theme */

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

:root {
    --bg-dark: #1a3a3a;
    --bg-darker: #0f2525;
    --teal-primary: #2d5a5a;
    --teal-dark: #1e4040;
    --red-primary: #c41e3a;
    --red-hover: #a01830;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.9);
    --white-dim: rgba(255, 255, 255, 0.7);
    --shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background image */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/kerr119_background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--red-primary) 0%, #8b1528 100%);
    color: var(--white);
    text-align: center;
    padding: 20px 30px;
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

.production-credit {
    font-size: 1rem;
    font-style: italic;
    color: var(--white-muted);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Logo */
.logo {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 25px;
}

/* Tagline */
.tagline {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Schedule intro */
.schedule-intro {
    text-align: center;
    margin: 50px 0 30px;
}

.schedule-intro h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Callout banner */
.callout-banner {
    text-align: center;
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.callout-banner p {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.5;
}

.callout-banner a {
    color: var(--red-primary);
    font-weight: 700;
    text-decoration: none;
}

.callout-banner a:hover {
    text-decoration: underline;
}

/* Featured video section (Part IV) */
.featured-video {
    margin-top: 20px;
    margin-bottom: 50px;
}

/* Preview Box styling */
.preview-box {
    position: relative;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(196, 30, 58, 0.15);
    border: 2px solid var(--red-primary);
    border-radius: 12px;
}

.preview-label {
    display: inline-block;
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    background: var(--red-primary);
    padding: 8px 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.4);
}

.preview-container {
    transform: none !important;
    margin-bottom: 0 !important;
}

.featured-video .video-section.featured {
    border: 2px solid var(--red-primary);
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.3);
}

.featured-video .video-container {
    transform: scale(1.2);
    transform-origin: center top;
    margin-bottom: 60px;
}

.featured-video .video-header h2 {
    flex-direction: row;
    align-items: baseline;
    gap: 15px;
}

.featured-video .share-buttons {
    margin-top: 20px;
}

.premiere-date {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

/* Video sections */
.videos {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.video-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-section.released {
    border-color: var(--red-primary);
}

.video-section.next-release {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.2);
}

.video-header {
    margin-bottom: 20px;
}

.video-header h2 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
}

.part-label {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: var(--teal-dark);
    padding: 5px 15px;
    border-radius: 3px;
}

.release-date {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white-dim);
}

/* Complimentary section styling */
.video-section.complimentary {
    border-color: rgba(255, 255, 255, 0.25);
}

.complimentary-note {
    font-style: italic;
    color: var(--white-dim);
    font-size: 1rem;
    margin-top: 8px;
}

/* Video container - Safe styling */
.video-container {
    margin-bottom: 20px;
    position: relative;
}

/* Safe outer frame */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(145deg, #4a4a4a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-radius: 8px;
    overflow: visible;
    border: 8px solid #3d3d3d;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Safe door inner bevel */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 12px;
    border: 4px solid #555;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 4px #2a2a2a;
    pointer-events: none;
    z-index: 5;
}

/* Rivets container */
.video-container::before,
.video-container::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, #666 0%, #333 50%, #222 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Top-left rivet */
.video-container::before {
    top: 8px;
    left: 8px;
}

/* Top-right rivet */
.video-container::after {
    top: 8px;
    right: 8px;
}

/* Bottom rivets via video-wrapper after */
.video-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8px;
    right: 8px;
    height: 0;
    z-index: 10;
    background-image:
        radial-gradient(circle at 16px 8px, #666 0%, #333 40%, transparent 50%),
        radial-gradient(circle at calc(100% - 16px) 8px, #666 0%, #333 40%, transparent 50%);
    background-size: 32px 16px, 32px 16px;
    background-position: left top, right top;
    background-repeat: no-repeat;
}

/* Safe handle decorative element */
.video-section .video-container {
    position: relative;
}

.video-section .video-container::before {
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 -2px 3px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5),
        /* Bottom left rivet */
        0 calc(100% - 32px) 0 0 #444,
        16px calc(100% - 16px) 0 0 transparent;
}

/* Safe dial decoration on right side */
.video-section .video-wrapper {
    position: relative;
}

/* Metallic texture overlay */
.video-section .video-container {
    background: linear-gradient(180deg,
        rgba(80, 80, 80, 0.1) 0%,
        rgba(40, 40, 40, 0.1) 100%);
    padding: 20px;
    border-radius: 16px;
    border: 3px solid #4a4a4a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Corner bolts for safe frame */
.video-section .video-container {
    position: relative;
}

/* Additional bottom rivets */
.video-section::before,
.video-section::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%, #5a5a5a 0%, #333 60%, #222 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.25),
        inset 0 -1px 2px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 15;
    pointer-events: none;
}

.video-section {
    position: relative;
}

.video-section::before {
    bottom: 50px;
    left: 33px;
}

.video-section::after {
    bottom: 50px;
    right: 33px;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background-image: url('assets/kerr119_placeholder.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.countdown-display {
    text-align: center;
    background: rgba(0, 0, 0, 0.75);
    padding: 30px 40px 20px;
    border-radius: 8px;
    position: relative;
}

/* Safe combination dial - now using a real element for interactivity */
.safe-dial {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:
        /* Center knob */
        radial-gradient(circle at 50% 50%, #888 0%, #555 20%, #333 25%, transparent 26%),
        /* Inner ring gradient */
        radial-gradient(circle at 50% 50%, transparent 35%, #222 36%, #444 38%, #333 42%, #222 44%, transparent 45%),
        /* Dial face */
        radial-gradient(circle at 50% 50%, #4a4a4a 0%, #3a3a3a 40%, #2a2a2a 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 0 0 4px #333,
        0 0 0 6px #555,
        0 0 0 8px #222;
    z-index: 10;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.safe-dial:hover {
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 0 4px #444,
        0 0 0 6px #666,
        0 0 0 8px #333;
}

/* Dial tick marks */
.safe-dial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image:
        /* Top tick */
        linear-gradient(to bottom, #ccc 0%, #999 100%),
        /* Right tick */
        linear-gradient(to left, #ccc 0%, #999 100%),
        /* Bottom tick */
        linear-gradient(to top, #ccc 0%, #999 100%),
        /* Left tick */
        linear-gradient(to right, #ccc 0%, #999 100%);
    background-size:
        3px 12px,
        12px 3px,
        3px 12px,
        12px 3px;
    background-position:
        center 8px,
        calc(100% - 8px) center,
        center calc(100% - 8px),
        8px center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Dial pointer/indicator */
.safe-dial::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, #ff4444 0%, #cc0000 100%);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Spin animation */
@keyframes spinDial {
    0% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(360deg); }
    50% { transform: translateX(-50%) rotate(0deg); }
    75% { transform: translateX(-50%) rotate(270deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

.safe-dial.spinning {
    animation: spinDial 1.5s ease-in-out;
    pointer-events: none;
}

/* Red flash on denied */
@keyframes dialDenied {
    0%, 100% { box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 0 4px #333, 0 0 0 6px #555, 0 0 0 8px #222; }
    50% { box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 0 4px #aa0000, 0 0 0 6px #ff0000, 0 0 0 8px #aa0000, 0 0 20px rgba(255, 0, 0, 0.5); }
}

.safe-dial.denied {
    animation: spinDial 1.5s ease-in-out, dialDenied 0.3s ease-in-out 1.5s 2;
}

.coming-soon {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 50px;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.countdown-timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-facebook {
    background: #1877f2;
    color: var(--white);
}

.share-facebook:hover {
    background: #0d65d9;
}

.share-twitter {
    background: #000;
    color: var(--white);
}

.share-twitter:hover {
    background: #333;
}

.share-copy {
    background: var(--teal-primary);
    color: var(--white);
}

.share-copy:hover {
    background: var(--teal-dark);
}

.share-btn.copied {
    background: #28a745;
}

/* Contact Form */
.contact-section {
    margin-top: 40px;
}

.contact-form-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-question {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    transition: border-color 0.2s ease;
}

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

.form-group input::placeholder {
    color: var(--white-dim);
}

.submit-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--red-primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--red-hover);
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--white-dim);
    margin-top: 20px;
    font-style: italic;
}

header a {
    text-decoration: none;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-live {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.copyright {
    font-size: 0.9rem;
    color: var(--white-dim);
}

/* Responsive */
@media (max-width: 600px) {
    .logo {
        max-width: 300px;
    }

    .tagline {
        max-width: 300px;
    }

    .video-header h2 {
        flex-direction: column;
        gap: 8px;
    }

    .part-label {
        font-size: 1.2rem;
    }

    /* Featured section - no scale on mobile */
    .featured-video .video-container {
        transform: none;
        margin-bottom: 20px;
    }

    .premiere-date {
        font-size: 0.9rem;
    }

    .featured-video .video-header h2 {
        flex-wrap: wrap;
    }

    .video-placeholder {
        padding-top: 60px;
    }

    .countdown-display {
        padding: 25px 30px 15px;
    }

    .safe-dial {
        width: 80px;
        height: 80px;
        top: -35px;
    }

    .coming-soon {
        margin-top: 40px;
        font-size: 1.2rem;
    }

    .countdown-timer {
        font-size: 1.5rem;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn {
        flex: 1 1 auto;
        text-align: center;
        min-width: 100px;
    }

    /* Safe styling adjustments for mobile */
    .video-wrapper {
        border-width: 6px;
    }

    .video-section .video-container {
        padding: 15px;
    }

    .video-container::before,
    .video-container::after {
        width: 12px;
        height: 12px;
    }

    .video-container::before {
        top: 6px;
        left: 6px;
    }

    .video-container::after {
        top: 6px;
        right: 6px;
    }

    .video-section::before {
        bottom: 45px;
        left: 23px;
    }

    .video-section::after {
        bottom: 45px;
        right: 23px;
    }
}
