/**
 * Seasonal Video Login Modal & My Videos Styles
 *
 * Reuses wizard.css patterns and CSS custom properties.
 */

/* ==========================================================================
   Login Modal
   ========================================================================== */
.sv-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2002; /* Above wizard modal */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sv-login-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.sv-login-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sv-login-modal__content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.sv-login-modal.is-visible .sv-login-modal__content {
    transform: translateY(0) scale(1);
}

.sv-login-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.sv-login-modal__close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.sv-login-modal__close svg {
    width: 20px;
    height: 20px;
}

.sv-login-modal__title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    text-align: center;
}

.sv-login-modal__subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.5;
}

/* Form */
.sv-login-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sv-login-form-group {
    display: flex;
    flex-direction: column;
}

.sv-login-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    font-family: inherit;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sv-login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sv-login-input:focus {
    border-color: #0df259;
    background: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.sv-login-btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sv-login-btn:active {
    transform: scale(0.98);
}

.sv-login-btn--primary {
    background: #0df259;
    color: #000000;
}

.sv-login-btn--primary:hover {
    background: #0bc248;
}

.sv-login-btn--primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Error message */
.sv-login-modal__error {
    margin-top: 16px;
    padding: 12px;
    font-size: 14px;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* Success state */
.sv-login-modal__success-state {
    text-align: center;
}

.sv-login-modal__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 242, 89, 0.1);
    border-radius: 50%;
}

.sv-login-modal__success-icon svg {
    width: 32px;
    height: 32px;
    stroke: #0df259;
}

.sv-login-modal__email-sent {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    word-break: break-all;
}

/* ==========================================================================
   My Videos Page
   ========================================================================== */
.sv-my-videos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sv-my-videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Video Card */
.sv-my-videos__card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sv-my-videos__card:hover {
    border-color: rgba(13, 242, 89, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sv-my-videos__card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(13, 242, 89, 0.1), rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv-my-videos__card-play {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sv-my-videos__card:hover .sv-my-videos__card-play {
    background: #0df259;
    transform: scale(1.1);
}

.sv-my-videos__card-play svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
    margin-left: 3px;
}

.sv-my-videos__card:hover .sv-my-videos__card-play svg {
    color: #000000;
}

.sv-my-videos__card-info {
    padding: 16px;
}

.sv-my-videos__card-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
}

.sv-my-videos__card-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Empty State */
.sv-my-videos__empty {
    text-align: center;
    padding: 60px 20px;
}

.sv-my-videos__empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.sv-my-videos__empty-icon svg {
    width: 40px;
    height: 40px;
    stroke: rgba(255, 255, 255, 0.4);
}

.sv-my-videos__empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
}

.sv-my-videos__empty-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.sv-my-videos__create-btn,
.sv-my-videos__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #000000;
    background: #0df259;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.sv-my-videos__create-btn:hover,
.sv-my-videos__login-btn:hover {
    background: #0bc248;
    color: #000000;
}

.sv-my-videos__create-btn:active,
.sv-my-videos__login-btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sv-hidden {
    display: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
    .sv-my-videos {
        padding: 60px 40px;
    }

    .sv-my-videos__grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 32px;
    }
}
