/* ==========================================================================
   Video Phone Frame Component
   Renders a phone-shaped mockup for video reel previews.
   ========================================================================== */

/* ==========================================================================
   Phone Frame Shell
   ========================================================================== */

.video-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 260px;
    flex-shrink: 0;
}

.video-phone {
    position: relative;
    border-radius: 18px;
    border: 3px solid #2a2a2a;
    box-shadow:
        0 0 0 1px rgb(255 255 255 / 10%) inset,
        0 8px 32px rgb(0 0 0 / 30%),
        0 2px 8px rgb(0 0 0 / 20%);
    overflow: hidden;
    width: 100%;
}

/* Notch */
.video-phone__notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* Home indicator */
.video-phone__home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgb(255 255 255 / 40%);
    border-radius: 2px;
    z-index: 10;
}

/* ==========================================================================
   Screen Area
   ========================================================================== */

.video-phone__screen {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Poster image — flows naturally, no fixed height */
.video-phone__poster {
    width: 100%;
    display: block;
}

/* Video element (hidden until play) */
.video-phone__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-phone__video[hidden] {
    display: none;
}

/* ==========================================================================
   Play Button Overlay
   ========================================================================== */

.video-phone__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
}

.video-phone__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-phone__play:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: 50%;
}

/* Hide play button when video is playing */
.video-phone--playing .video-phone__play {
    display: none;
}

/* ==========================================================================
   Audio Notice
   ========================================================================== */

.video-phone__audio-notice {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgb(0 0 0 / 85%);
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 12px;
    white-space: nowrap;
    pointer-events: none;
}

/* Hide audio notice after first play */
.video-phone--played .video-phone__audio-notice {
    display: none;
}

/* ==========================================================================
   Platform Header Overlay
   ========================================================================== */

.video-phone__header {
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 8px 12px;
}

.video-phone__account {
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Engagement Icons Overlay
   ========================================================================== */

.video-phone__engagement {
    position: absolute;
    bottom: 48px;
    right: 8px;
    z-index: 4;
}

.video-phone__engagement-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.video-phone__engagement-icons svg {
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 30%));
}

/* ==========================================================================
   Caption Overlay
   ========================================================================== */

.video-phone__caption {
    position: absolute;
    bottom: 20px;
    left: 8px;
    right: 44px;
    z-index: 4;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Platform Label (below phone)
   ========================================================================== */

.video-phone__platform-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-navy-500);
    letter-spacing: 0.3px;
}

.video-phone__platform-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.video-phone__platform-icon--ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.video-phone__platform-icon--tiktok {
    background: #000;
}

.video-phone__platform-icon--fb {
    background: #1877f2;
}

/* ==========================================================================
   Spec Badge (used below video phone groups)
   ========================================================================== */

.video-spec-badge {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-navy-500);
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-cream-100);
    border-radius: 8px;
    line-height: 1.5;
}

.video-spec-badge--highlight {
    background: var(--color-navy-900, #1a2332);
    color: var(--color-cream-100, #faf8f2);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    font-size: var(--font-size-base, 1rem);
}

.video-spec-badge__label {
    display: inline-block;
    background: var(--color-gold-500, #c5a44e);
    color: var(--color-navy-900, #1a2332);
    font-weight: 700;
    font-size: var(--font-size-xs, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (width <= 768px) {
    .video-phone-wrapper {
        width: 220px;
    }
}

@media (width <= 480px) {
    .video-phone-wrapper {
        width: 200px;
        max-width: 60vw;
    }
}

/* ==========================================================================
   Landing Page Integration
   ========================================================================== */

.landing-video-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    position: relative;
    z-index: 2;
}

.landing-video-preview__pitch {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-cream-100, #faf8f2);
    line-height: 1.5;
    max-width: 360px;
    background: rgb(0 0 0 / 80%);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 10px;
}

.landing-video-preview__badge {
    display: inline-block;
    background: var(--color-gold-500, #c5a44e);
    color: var(--color-navy-900, #1a2332);
    font-weight: 700;
    font-size: var(--font-size-xs, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.landing-video-preview__pitch a {
    color: var(--color-gold, #c9a961);
    text-decoration: underline;
}

.landing-video-preview__pitch a:hover {
    color: var(--color-gold-600, #b89545);
}

/* V7 brutalist variant — uppercase style */
.landing-video-preview--centered .landing-video-preview__pitch {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
