﻿/* === Generic Modal Styles (register/login) === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: none; /* .show ile açılır */
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
    animation: modal-fade .18s ease-out;
}

    .modal-overlay.show {
        display: flex;
    }

.modal-card {
    position: relative;
    background: #fff;
    color: #0f172a;
    border-radius: 16px;
    padding: clamp(16px,4vw,28px);
    width: min(560px,100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    text-align: center;
    outline: none;
}

    .modal-card h3 {
        font-size: clamp(18px,2vw,22px);
        margin: 8px 0 4px;
        font-weight: 700;
    }

    .modal-card p {
        font-size: clamp(14px,1.8vw,16px);
        margin: 6px 0 0;
        color: #334155;
    }

.modal-icon {
    font-size: 48px;
    margin-bottom: 8px;
    line-height: 1;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: #64748b;
}

    .modal-close:hover {
        color: #0f172a;
    }

.no-scroll {
    overflow: hidden;
}

/* Variants (icon renkleri) */
.modal-card.success .modal-icon {
    color: #22c55e;
}
/* yeşil */
.modal-card.warning .modal-icon {
    color: #f59e0b;
}
/* amber */
.modal-card.error .modal-icon {
    color: #ef4444;
}
/* kırmızı */
.modal-card.info .modal-icon {
    color: #3b82f6;
}
/* mavi */
.modal-card.error .modal-icon {
    color: #ef4444;
}
/* kırmızı */


/* Responsive tweaks */
@media (max-width:480px) {
    .modal-card {
        border-radius: 12px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* Subtle fade */
@keyframes modal-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
