/* ════════════════════════════════════════════════════════
   AL EHDA — THANK YOU PAGE STYLES
   File: /assets/css/thankyou.css
   ════════════════════════════════════════════════════════ */

.ae-thankyou-page {
    background: var(--ae-off-white);
    min-height: 80vh;
    padding: var(--ae-sp-10) 0 var(--ae-sp-20);
}

/* ── HERO ────────────────────────────────────────────── */
.ae-thankyou-hero {
    text-align: center;
    padding: var(--ae-sp-12) var(--ae-sp-8);
    border-radius: var(--ae-r-2xl);
    margin-bottom: var(--ae-sp-8);
    position: relative;
    overflow: hidden;
}

.ae-thankyou-hero--paid {
    background: linear-gradient(135deg, #0F1229 0%, #1B1F3B 100%);
    color: white;
}

.ae-thankyou-hero--pending {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213E 100%);
    color: white;
}

/* Decorative background */
.ae-thankyou-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Success icon */
.ae-thankyou-hero__icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--ae-sp-6);
    position: relative;
}

.ae-thankyou-hero__icon--success {
    background: rgba(45,198,83,0.15);
    border: 3px solid var(--ae-success);
    color: var(--ae-success);
    animation: ae-icon-pop 0.6s var(--ae-ease) both;
}

.ae-thankyou-hero__icon--pending {
    background: rgba(245,158,11,0.15);
    border: 3px solid var(--ae-warning);
    color: var(--ae-warning);
}

@keyframes ae-icon-pop {
    0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
    70%  { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.ae-thankyou-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--ae-white);
    margin-bottom: var(--ae-sp-3);
    font-weight: var(--ae-weight-black);
    animation: ae-slide-up 0.5s var(--ae-ease) 0.2s both;
}

.ae-thankyou-hero__subtitle {
    font-size: var(--ae-text-lg);
    color: rgba(255,255,255,0.72);
    margin-bottom: var(--ae-sp-6);
    animation: ae-slide-up 0.5s var(--ae-ease) 0.3s both;
}

@keyframes ae-slide-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Email notice */
.ae-thankyou-hero__email-notice {
    display: inline-flex;
    align-items: center;
    gap: var(--ae-sp-2);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--ae-r-full);
    padding: var(--ae-sp-2) var(--ae-sp-4);
    font-size: var(--ae-text-sm);
    color: rgba(255,255,255,0.80);
    margin-bottom: var(--ae-sp-6);
    animation: ae-slide-up 0.5s var(--ae-ease) 0.4s both;
}

.ae-thankyou-hero__email-notice svg { color: var(--ae-accent); flex-shrink: 0; }

/* Order badge */
.ae-thankyou-hero__order-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ae-sp-2);
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.30);
    border-radius: var(--ae-r-full);
    padding: var(--ae-sp-2) var(--ae-sp-5);
    font-size: var(--ae-text-sm);
    color: var(--ae-accent);
    animation: ae-slide-up 0.5s var(--ae-ease) 0.5s both;
    cursor: pointer;
}

.ae-thankyou-hero__order-badge strong {
    font-family: var(--ae-font-heading);
    font-size: var(--ae-text-base);
}

/* ── DOWNLOAD SECTION ────────────────────────────────── */
.ae-download-section {
    background: var(--ae-white);
    border-radius: var(--ae-r-xl);
    border: 1px solid var(--ae-border);
    padding: var(--ae-sp-8);
    margin-bottom: var(--ae-sp-6);
    box-shadow: var(--ae-shadow-md);
}

.ae-download-section__title {
    font-size: var(--ae-text-2xl);
    color: var(--ae-primary);
    margin-bottom: var(--ae-sp-6);
    padding-bottom: var(--ae-sp-4);
    border-bottom: 1px solid var(--ae-border);
}

/* Download cards */
.ae-download-cards {
    display: flex;
    flex-direction: column;
    gap: var(--ae-sp-4);
    margin-bottom: var(--ae-sp-5);
}

.ae-download-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--ae-sp-5);
    align-items: center;
    padding: var(--ae-sp-5);
    background: var(--ae-light);
    border-radius: var(--ae-r-lg);
    border: 1.5px solid var(--ae-border);
    transition: all var(--ae-base);
}

.ae-download-card:hover {
    border-color: var(--ae-accent);
    box-shadow: var(--ae-shadow-md);
}

/* Thumbnail */
.ae-download-card__thumb {
    width: 80px;
    height: 100px;
    border-radius: var(--ae-r-md);
    overflow: hidden;
    background: var(--ae-white);
    border: 1px solid var(--ae-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ae-download-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ae-download-card__thumb-placeholder { font-size: 2rem; }

/* Info */
.ae-download-card__name {
    font-size: var(--ae-text-base);
    font-weight: var(--ae-weight-bold);
    color: var(--ae-primary);
    margin: 0 0 var(--ae-sp-3);
}

.ae-download-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ae-sp-2);
    margin-bottom: var(--ae-sp-3);
}

.ae-tag--success {
    background: rgba(45,198,83,0.10);
    border-color: rgba(45,198,83,0.25);
    color: var(--ae-success);
}

.ae-download-card__hint {
    font-size: var(--ae-text-xs);
    color: var(--ae-text-muted);
    margin: 0;
}

/* Action */
.ae-download-card__action { flex-shrink: 0; text-align: center; }

.ae-download-btn {
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(201,168,76,0.25);
}

.ae-download-btn:hover { box-shadow: 0 6px 20px rgba(201,168,76,0.35); }

.ae-download-card__filesize {
    font-size: 11px;
    color: var(--ae-text-muted);
    margin: var(--ae-sp-2) 0 0;
}

.ae-download-card__pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ae-sp-2);
    color: var(--ae-warning);
    font-size: var(--ae-text-sm);
}

/* Account notice */
.ae-download-section__account-notice {
    display: flex;
    align-items: center;
    gap: var(--ae-sp-3);
    background: var(--ae-light);
    border-radius: var(--ae-r-md);
    padding: var(--ae-sp-3) var(--ae-sp-4);
    font-size: var(--ae-text-sm);
    color: var(--ae-text-muted);
}

.ae-download-section__account-notice svg { color: var(--ae-info); flex-shrink: 0; }
.ae-download-section__account-notice a  { color: var(--ae-accent); font-weight: var(--ae-weight-semi); }

/* ── ORDER DETAILS ───────────────────────────────────── */
.ae-order-details {
    background: var(--ae-white);
    border-radius: var(--ae-r-xl);
    border: 1px solid var(--ae-border);
    padding: var(--ae-sp-8);
    margin-bottom: var(--ae-sp-6);
    box-shadow: var(--ae-shadow-sm);
}

.ae-order-details__title {
    font-size: var(--ae-text-xl);
    color: var(--ae-primary);
    margin-bottom: var(--ae-sp-5);
    padding-bottom: var(--ae-sp-4);
    border-bottom: 1px solid var(--ae-border);
}

.ae-order-details__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ae-sp-4);
}

.ae-order-detail-item {
    padding: var(--ae-sp-4);
    background: var(--ae-light);
    border-radius: var(--ae-r-md);
    border: 1px solid var(--ae-border);
    display: flex;
    flex-direction: column;
    gap: var(--ae-sp-1);
}

.ae-order-detail-item__label {
    font-size: var(--ae-text-xs);
    color: var(--ae-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--ae-weight-semi);
}

.ae-order-detail-item__value {
    font-size: var(--ae-text-sm);
    font-weight: var(--ae-weight-semi);
    color: var(--ae-text);
}

.ae-order-detail-item__value--price {
    font-family: var(--ae-font-heading);
    font-size: var(--ae-text-xl);
    font-weight: var(--ae-weight-black);
    color: var(--ae-primary);
}

/* Status badge */
.ae-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--ae-r-full);
    font-size: var(--ae-text-xs);
    font-weight: var(--ae-weight-bold);
}

.ae-status-badge--completed  { background: rgba(45,198,83,0.12); color: var(--ae-success); }
.ae-status-badge--processing { background: rgba(245,158,11,0.12); color: var(--ae-warning); }
.ae-status-badge--pending    { background: rgba(59,130,246,0.12); color: var(--ae-info); }

/* ── SHARE SECTION ───────────────────────────────────── */
.ae-thankyou-share {
    background: var(--ae-white);
    border-radius: var(--ae-r-xl);
    border: 1px solid var(--ae-border);
    padding: var(--ae-sp-8);
    margin-bottom: var(--ae-sp-6);
    text-align: center;
}

.ae-thankyou-share h3 { font-size: var(--ae-text-xl); margin-bottom: var(--ae-sp-2); }
.ae-thankyou-share p  { color: var(--ae-text-muted); margin-bottom: var(--ae-sp-5); }

.ae-thankyou-share__buttons {
    display: flex;
    gap: var(--ae-sp-3);
    justify-content: center;
    flex-wrap: wrap;
}

.ae-share-fb { background: #1877F2; color: white; border-color: #1877F2; }
.ae-share-fb:hover { background: #1565C0; color: white; }
.ae-share-wa { background: #25D366; color: white; border-color: #25D366; }
.ae-share-wa:hover { background: #1DA851; color: white; }

/* ── NEXT ACTIONS ────────────────────────────────────── */
.ae-thankyou-actions {
    display: flex;
    gap: var(--ae-sp-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--ae-sp-8);
}

/* ── CONFETTI CANVAS ─────────────────────────────────── */
#ae-confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .ae-download-card {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }

    .ae-download-card__action {
        grid-column: 1 / -1;
        text-align: left;
    }

    .ae-download-btn { width: 100%; justify-content: center; }

    .ae-order-details__grid { grid-template-columns: 1fr; }

    .ae-thankyou-actions { flex-direction: column; align-items: stretch; }
    .ae-thankyou-actions .ae-btn { text-align: center; }
}
