/* ==========================================================
 * HaberWeb — Core Stilleri (Ortak Temel & Bileşenler)
 * ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1e293b;
    background-color: #ffffff;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ── Modern Bildirim & Modal Dialog Sistemi ──────────────────── */
.alert-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.alert-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.alert-modal {
    position: relative;
    width: 100%;
    max-width: 410px;
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
    text-align: center;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-modal-backdrop.active .alert-modal {
    transform: scale(1) translateY(0);
}

.alert-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.alert-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.alert-modal-icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.alert-modal-icon-wrap svg {
    width: 32px;
    height: 32px;
}

/* Modal Varyantları: Success, Error, Warning, Info */
.alert-modal-success .alert-modal-icon-wrap {
    background: #ecfdf5;
    color: #059669;
    box-shadow: 0 0 0 8px #f0fdf4;
}

.alert-modal-danger .alert-modal-icon-wrap,
.alert-modal-error .alert-modal-icon-wrap {
    background: #fef2f2;
    color: #dc2626;
    box-shadow: 0 0 0 8px #fff1f2;
}

.alert-modal-warning .alert-modal-icon-wrap {
    background: #fffbeb;
    color: #d97706;
    box-shadow: 0 0 0 8px #fefce8;
}

.alert-modal-info .alert-modal-icon-wrap {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 0 0 8px #f0f9ff;
}

.alert-modal-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.alert-modal-message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    word-break: break-word;
}

.alert-modal-actions {
    display: flex;
    justify-content: center;
}

.alert-modal-btn {
    min-width: 140px;
    height: 42px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alert-modal-success .alert-modal-btn {
    background: #059669;
    color: #ffffff;
}
.alert-modal-success .alert-modal-btn:hover {
    background: #047857;
}

.alert-modal-danger .alert-modal-btn,
.alert-modal-error .alert-modal-btn {
    background: #dc2626;
    color: #ffffff;
}
.alert-modal-danger .alert-modal-btn:hover {
    background: #b91c1c;
}

.alert-modal-warning .alert-modal-btn {
    background: #d97706;
    color: #ffffff;
}
.alert-modal-warning .alert-modal-btn:hover {
    background: #b45309;
}

.alert-modal-info .alert-modal-btn {
    background: #2563eb;
    color: #ffffff;
}
.alert-modal-info .alert-modal-btn:hover {
    background: #1d4ed8;
}

/* İlerleme Çubuğu (Geri sayım) */
.alert-modal-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f1f5f9;
    overflow: hidden;
}

.alert-modal-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    transition: transform 4.5s linear;
}

.alert-modal-success .alert-modal-progress-bar { background: #10b981; }
.alert-modal-danger .alert-modal-progress-bar,
.alert-modal-error .alert-modal-progress-bar { background: #ef4444; }
.alert-modal-warning .alert-modal-progress-bar { background: #f59e0b; }
.alert-modal-info .alert-modal-progress-bar { background: #3b82f6; }


/* Eski .alert fallback */
.alert {
    display: none;
}

/* ── Modal Dialog Stilleri (Ortak) ─────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    width: 100%;
    max-width: 460px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.modal-backdrop.active .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-dialog-sm {
    max-width: 380px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.modal-title svg {
    color: #475569;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.modal-body {
    padding: 20px 22px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

/* Modal Form Elemanları */
.modal-form .form-group {
    margin-bottom: 16px;
}

.modal-form .form-group:last-child {
    margin-bottom: 0;
}

.modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="password"],
.modal-form input[type="number"],
.modal-form input[type="url"],
.modal-form input[type="tel"],
.modal-form input[type="date"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 9px 13px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-form input::placeholder {
    color: #94a3b8;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Modal Butonları */
.btn-cancel {
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cancel:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-submit:hover {
    background-color: #1d4ed8;
}