/* Preview Page Styles */
.preview-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
}

.preview-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.preview-page.fade-in::before {
    opacity: 1;
}

.preview-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.preview-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: #D4AF37;
    text-transform: uppercase;
    opacity: 0.8;
}

.preview-content {
    margin-top: 2rem;
}

.preview-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.video-item {
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border-radius: 6px;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    filter: blur(15px);
}

.video-item:hover .thumbnail-placeholder {
    border-color: rgba(212, 175, 55, 0.6);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.play-button:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9));
}

.video-info {
    padding: 0 0.2rem;
}

.video-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.video-duration,
.video-views {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.video-duration::before {
    content: '⏱ ';
    opacity: 0.7;
}

.video-views::before {
    content: '👁 ';
    opacity: 0.7;
}

.preview-cta {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 2rem;
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #D4AF37;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.login-modal.show {
    display: flex;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.login-modal-content {
    position: relative;
    z-index: 2001;
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.2);
    animation: modalFadeIn 0.3s ease-out;
    text-align: center;
}

.login-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-modal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #D4AF37;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.login-modal-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-modal-button {
    padding: 0.9rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 2px solid #D4AF37;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.login-modal-button.primary {
    color: #0a0a0a;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E5C2 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.login-modal-button.primary:hover {
    background: transparent;
    color: #D4AF37;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.login-modal-button.secondary {
    color: #D4AF37;
    background: transparent;
}

.login-modal-button.secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive adjustments for preview page */
@media (max-width: 768px) {
    .preview-page {
        padding: 5rem 1rem 2rem;
        background-attachment: scroll;
    }

    .preview-page::before {
        background-attachment: scroll;
    }

    .preview-container {
        padding: 2rem 1.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .video-title {
        font-size: 0.75rem;
    }

    .video-meta {
        font-size: 0.65rem;
    }

    .play-button svg {
        width: 30px;
        height: 30px;
    }

    .cta-text {
        font-size: 1rem;
    }

    .login-modal-content {
        padding: 2rem 1.5rem;
    }

    .login-modal-content h2 {
        font-size: 1.5rem;
    }

    .login-modal-buttons {
        flex-direction: column;
    }

    .login-modal-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}