/* ── Elvis Video Generator Styles ── */

#elvis-container {
    max-width: 760px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── GATE ── */
#elvis-gate {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}
.elvis-avatar { font-size: 64px; margin-bottom: 16px; }
#elvis-gate h2 { font-size: 28px; margin: 0 0 10px; color: #fff; }
#elvis-gate p  { color: #aac; margin-bottom: 24px; }
.elvis-gate-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.elvis-gate-form input {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    outline: none;
    width: 220px;
}
.elvis-gate-form input::placeholder { color: rgba(255,255,255,0.5); }
.elvis-gate-form input:focus { border-color: #e94560; }
#elvis-gate-btn {
    padding: 12px 28px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#elvis-gate-btn:hover { background: #c73652; }

/* ── MAIN ── */
#elvis-main {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.elvis-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    padding: 28px 32px;
    color: #fff;
}
.elvis-header h2 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.elvis-header p  { margin: 0; color: #aac; font-size: 15px; }

.elvis-form-wrap { padding: 32px; }

/* ── UPLOAD ZONE ── */
.elvis-upload-zone {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 24px;
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.elvis-upload-zone:hover, .elvis-upload-zone.dragover {
    border-color: #e94560;
    background: #fff5f6;
}
.elvis-upload-zone.has-image {
    border-style: solid;
    border-color: #e94560;
    padding: 12px;
}
#elvis-upload-placeholder .upload-icon { font-size: 40px; display: block; margin-bottom: 10px; }
#elvis-upload-placeholder p { margin: 0 0 4px; font-weight: 600; color: #344054; }
#elvis-upload-placeholder small { color: #667085; }
#elvis-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

/* ── PROMPT ── */
.elvis-prompt-wrap label {
    display: block;
    font-weight: 600;
    color: #344054;
    margin-bottom: 8px;
}
.elvis-prompt-wrap textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d0d5dd;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}
.elvis-prompt-wrap textarea:focus {
    outline: none;
    border-color: #e94560;
}
.elvis-prompt-hints {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.elvis-prompt-hints span { font-size: 13px; color: #667085; }
.hint-btn {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 20px;
    background: #f9fafb;
    color: #344054;
    cursor: pointer;
    transition: all 0.2s;
}
.hint-btn:hover {
    border-color: #e94560;
    background: #fff5f6;
    color: #e94560;
}

/* ── SUBMIT ── */
#elvis-submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
#elvis-submit-btn:hover:not(:disabled) { background: #c73652; }
#elvis-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── STATUS ── */
#elvis-status-wrap {
    padding: 28px 32px;
    border-top: 1px solid #f2f4f7;
}
.elvis-status-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.elvis-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e94560;
    border-radius: 50%;
    animation: elvis-spin 1s linear infinite;
    flex-shrink: 0;
}
@keyframes elvis-spin { to { transform: rotate(360deg); } }
#elvis-status-text  { margin: 0 0 4px; font-weight: 600; color: #344054; }
#elvis-status-sub   { color: #667085; font-size: 13px; }
.elvis-progress-bar {
    background: #f2f4f7;
    border-radius: 20px;
    height: 6px;
    overflow: hidden;
}
#elvis-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e94560, #f5a623);
    border-radius: 20px;
    width: 0%;
    transition: width 3s ease;
    animation: elvis-pulse-bar 2s ease-in-out infinite;
}
@keyframes elvis-pulse-bar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── RESULT ── */
#elvis-result-wrap {
    padding: 28px 32px;
    border-top: 1px solid #f2f4f7;
    text-align: center;
}
#elvis-result-wrap h3 { font-size: 20px; color: #344054; margin-bottom: 16px; }
#elvis-result-video {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    background: #000;
    margin-bottom: 20px;
}
.elvis-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.elvis-btn-download {
    padding: 12px 28px;
    background: #0f3460;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.elvis-btn-download:hover { background: #16213e; color: #fff; }
.elvis-btn-reset {
    padding: 12px 28px;
    background: #f2f4f7;
    color: #344054;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.elvis-btn-reset:hover { background: #e4e7ec; }

/* ── ERROR ── */
#elvis-error-wrap {
    padding: 28px 32px;
    border-top: 1px solid #f2f4f7;
    text-align: center;
}
.elvis-error { color: #e94560; font-weight: 500; }
#elvis-retry-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}
#elvis-gate-error { margin-top: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .elvis-form-wrap { padding: 20px; }
    #elvis-gate { padding: 40px 20px; }
    .elvis-gate-form { flex-direction: column; align-items: center; }
}
