/**
 * Birthday Gate Styles
 * Retro-themed authentication overlay for Ana's 30th birthday site
 */

/* === OVERLAY GATE === */
#ana-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ana-gate-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    animation: ana-gate-fadein 1s ease forwards;
}

@keyframes ana-gate-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ana-gate-container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 520px;
    animation: ana-gate-slideup 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ana-gate-slideup {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ana-gate-inner {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(5, 40, 5, 0.97) 50%,
        rgba(0, 0, 0, 1) 100%
    );
    border: 2px solid yellow;
    border-radius: 8px;
    padding: 30px 28px 24px;
    box-shadow:
        0 0 15px rgba(255, 255, 0, 0.3),
        0 0 40px rgba(255, 255, 0, 0.1),
        inset 0 0 30px rgba(255, 255, 0, 0.05);
    font-family: "Consolas", monospace;
}

/* === HEADER === */
.ana-gate-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ana-gate-header h1 {
    font-family: "Silkscreen", monospace;
    font-size: 1.3rem;
    color: yellow;
    text-shadow:
        0 0 8px rgba(255, 255, 0, 0.6),
        0 0 20px rgba(255, 255, 0, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.ana-gate-dice {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
    animation: ana-gate-spin 4s linear infinite;
}

@keyframes ana-gate-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === LINE SEPARATOR === */
.ana-gate-line {
    border: none;
    border-top: 1px dashed rgba(255, 255, 0, 0.4);
    margin: 10px 0 16px;
}

/* === QUESTION === */
.ana-gate-question {
    text-align: center;
    margin-bottom: 18px;
}

.ana-gate-question p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 4px 0;
}

.ana-gate-main-q {
    color: yellow !important;
    font-size: 1.05rem !important;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 255, 0, 0.3);
}

/* === FORM === */
.ana-gate-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ana-gate-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.ana-gate-input-group label {
    color: rgba(255, 255, 0, 0.7);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ana-gate-input-group input,
.ana-gate-input-group textarea {
    background: rgba(255, 255, 0, 0.06);
    border: 1px solid rgba(255, 255, 0, 0.35);
    border-radius: 4px;
    color: #b9b9b9;
    font-family: "Consolas", monospace;
    font-size: 0.9rem;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ana-gate-input-group input:focus,
.ana-gate-input-group textarea:focus {
    border-color: yellow;
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.25);
}

.ana-gate-input-group input::placeholder,
.ana-gate-input-group textarea::placeholder {
    color: rgba(185, 185, 185, 0.4);
    font-style: italic;
}

.ana-gate-input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* === SUBMIT BUTTON === */
.ana-gate-submit-btn {
    background: linear-gradient(180deg, #2a2a00 0%, #1a3a00 100%);
    border: 2px solid yellow;
    border-radius: 4px;
    color: yellow;
    font-family: "Silkscreen", monospace;
    font-size: 1rem;
    padding: 12px 20px;
    cursor: pointer;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
    transition: all 0.3s ease;
    margin-top: 6px;
}

.ana-gate-submit-btn:hover {
    background: linear-gradient(180deg, #4a4a00 0%, #2a5a00 100%);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.35);
    transform: scale(1.02);
}

.ana-gate-submit-btn:active {
    transform: scale(0.98);
}

.ana-gate-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === ERROR MESSAGE === */
.ana-gate-error {
    color: #ff4444;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 8px;
    text-shadow: 0 0 6px rgba(255, 68, 68, 0.3);
}

/* === FOOTER === */
.ana-gate-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.ana-gate-footer img {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .ana-gate-container {
        width: 95%;
    }

    .ana-gate-inner {
        padding: 22px 18px 18px;
    }

    .ana-gate-header h1 {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .ana-gate-main-q {
        font-size: 0.95rem !important;
    }

    .ana-gate-submit-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .ana-gate-header h1 {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .ana-gate-inner {
        padding: 16px 14px 14px;
    }
}
