/**
 * GilGamez Accounts Platform — Modal Engine Styles
 * Path: engine/Modal/css/modal.css
 */

.ggz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 26, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: ggzModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ggz-modal-overlay.closing {
    animation: ggzModalFadeOut 0.18s ease-in forwards;
}

.ggz-modal-card {
    position: relative;
    background: #0d121c;
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 460px;
    width: 100%;
    padding: 26px 24px 22px;
    box-sizing: border-box;
    transform: scale(0.95) translateY(8px);
    animation: ggzModalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: #f8fafc;
    overflow: hidden;
}

.ggz-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c5a059 25%, #f5e6a3 50%, #c5a059 75%, transparent);
}

.ggz-modal-overlay.closing .ggz-modal-card {
    animation: ggzModalScaleOut 0.18s ease-in forwards;
}

.ggz-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease;
    padding: 0;
    z-index: 2;
}

.ggz-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.ggz-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-right: 32px;
}

.ggz-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ggz-modal-icon.gold {
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.25);
    color: #c5a059;
}

.ggz-modal-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.ggz-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.ggz-modal-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

.ggz-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.btn-primary-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b89328 100%);
    color: #0a0e17 !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    line-height: 1.4;
    text-decoration: none;
}

.btn-primary-gold:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
}

.btn-primary-gold:active {
    transform: translateY(0);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
    text-decoration: none;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.4;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

@keyframes ggzModalFadeIn {
    to { opacity: 1; }
}

@keyframes ggzModalFadeOut {
    to { opacity: 0; }
}

@keyframes ggzModalScaleIn {
    to {
        transform: scale(1) translateY(0);
    }
}

@keyframes ggzModalScaleOut {
    to {
        transform: scale(0.95) translateY(8px);
    }
}
