/* =====================================================
   BIYOGAZ AKADEMISI - UI Notification & Confirmation System
   AkademiUI namespace — public + admin ortak yüklenir.
   Editorial palette token'larıyla uyumlu (theme.css public, admin.css admin).
   ===================================================== */

/* === TOAST CONTAINER === */
.akademi-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9998;
    max-width: 380px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

.akademi-toast {
    background: #0d0d0d;
    color: #fafaf7;
    padding: 12px 14px 12px 16px;
    border-left: 3px solid #4a90c2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    font-family: "Inter Tight", -apple-system, system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.akademi-toast.show {
    opacity: 1;
    transform: translateX(0);
}
.akademi-toast.leaving {
    opacity: 0;
    transform: translateX(20px);
}

.akademi-toast.success { border-left-color: #2f5d3f; }
.akademi-toast.error   { border-left-color: #7a3a3a; }
.akademi-toast.warning { border-left-color: #7a4f1f; }
.akademi-toast.info    { border-left-color: #4a90c2; }

.akademi-toast-icon {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.2;
}
.akademi-toast-body {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.akademi-toast-title {
    font-weight: 600;
    margin-bottom: 2px;
}
.akademi-toast-action {
    margin-left: 10px;
    color: #a8cce5;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    white-space: nowrap;
}
.akademi-toast-action:hover { color: #fff; }
.akademi-toast-close {
    flex-shrink: 0;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 6px;
}
.akademi-toast-close:hover { color: #fff; }

@media (max-width: 600px) {
    .akademi-toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .akademi-toast { transition: opacity 0.001ms; transform: none; }
}

/* === CONFIRMATION MODAL === */
.akademi-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.akademi-modal-overlay.show { opacity: 1; }

.akademi-modal {
    background: #fafaf7;
    border-top: 3px solid #0d0d0d;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    max-width: 440px;
    width: 100%;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.15s ease;
}
.akademi-modal-overlay.show .akademi-modal {
    transform: translateY(0) scale(1);
}
.akademi-modal.danger { border-top-color: #7a3a3a; }
.akademi-modal.warning { border-top-color: #7a4f1f; }

.akademi-modal-body { padding: 24px 24px 16px; }
.akademi-modal-title {
    font-family: "Source Serif 4", "Inter Tight", Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    color: #0d0d0d;
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.akademi-modal-message {
    font-family: "Inter Tight", -apple-system, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2a2a2a;
    margin: 0;
}
.akademi-modal-message strong { color: #0d0d0d; }
.akademi-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 24px 20px;
    flex-wrap: wrap;
}
.akademi-modal-btn {
    padding: 9px 18px;
    font-family: "Inter Tight", -apple-system, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #0d0d0d;
    background: transparent;
    color: #0d0d0d;
    cursor: pointer;
    border-radius: 0;
    min-width: 100px;
}
.akademi-modal-btn:hover { background: #0d0d0d; color: #fff; }
.akademi-modal-btn.primary {
    background: #11214a;
    border-color: #11214a;
    color: #fff;
}
.akademi-modal-btn.primary:hover { background: #0d0d0d; border-color: #0d0d0d; }
.akademi-modal-btn.danger {
    background: #7a3a3a;
    border-color: #7a3a3a;
    color: #fff;
}
.akademi-modal-btn.danger:hover { background: #5a2a2a; border-color: #5a2a2a; }
.akademi-modal-btn:focus-visible {
    outline: 2px solid #4a90c2;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .akademi-modal-actions { justify-content: stretch; }
    .akademi-modal-btn { flex: 1; min-width: 0; }
}
