/* ================================================================
   AYYILDIZ IMZA — KURUMSAL WEB TASARIM SİSTEMİ
   Kaynak: referans_web_tasarim/tasarimsozlesmesi.md v1.0
   ================================================================ */

/* === 3. Renk Paleti === */
:root {
    --brand-red:        #CC0033;
    --brand-red-hover:  #B3002C;
    --brand-red-deep:   #8F0028;

    --surface-page:     #F7F7F8;
    --surface-card:     #FFFFFF;
    --surface-hover:    #FAFAFB;
    --divider:          #E5E7EB;
    --border-soft:      #EFF0F2;

    --input-border:        #B8BFC9;
    --input-border-focus:  var(--brand-red);
    --input-bg:            #FAFAFB;

    --text-primary:     #111827;
    --text-secondary:   #4B5563;
    --text-muted:       #9CA3AF;
    --text-on-brand:    #FFFFFF;

    --status-ok:        #047857;
    --status-warn:      #B45309;
    --status-err:       #991B1B;

    --radius-card:      10px;
    --radius-button:    8px;
    --radius-input:     8px;
    --radius-modal:     12px;
    --radius-pill:      999px;

    --shadow-card:
        0 1px 2px rgba(17,24,39,0.04),
        0 4px 12px rgba(17,24,39,0.06),
        0 12px 28px rgba(17,24,39,0.05);
    --shadow-card-hover:
        0 1px 2px rgba(17,24,39,0.05),
        0 6px 16px rgba(17,24,39,0.08),
        0 18px 36px rgba(17,24,39,0.07);
    --shadow-overlay:
        0 2px 4px rgba(17,24,39,0.06),
        0 12px 24px rgba(17,24,39,0.12),
        0 32px 64px rgba(17,24,39,0.14);
    --shadow-sticky:
        0 4px 12px rgba(17,24,39,0.06);
}

/* === 5. Tipografi === */
body {
    font-family: 'Segoe UI Variable','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif !important;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--surface-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1;
}
h1,h2,h3,h4,h5,h6 {
    font-family: inherit !important;
    color: var(--text-primary);
    font-weight: 600;
}
em, i:not([class]) { font-style: normal !important; }

/* Tipografi hiyerarşi yardımcıları */
.ayy-display   { font-size:21px; font-weight:600; letter-spacing:-0.005em; color:var(--text-primary); }
.ayy-eyebrow   { font-size:12px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--text-muted); }
.ayy-section   { font-size:14px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; }
.ayy-title     { font-size:16px; font-weight:600; color:var(--text-primary); }
.ayy-label     { font-size:14px; font-weight:600; color:var(--text-primary); margin-bottom:6px; }
.ayy-body      { font-size:14px; font-weight:400; color:var(--text-primary); }
.ayy-subtitle  { font-size:13px; font-weight:400; color:var(--text-secondary); }
.ayy-caption   { font-size:12px; font-weight:400; color:var(--text-muted); }
.ayy-badge     { font-size:12px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; }
.ayy-value     { font-size:15px; font-weight:600; color:var(--text-primary); }

/* === 7.1 Header === */
#header,
.ayy-header {
    background: var(--brand-red) !important;
    border-bottom: 3px solid var(--brand-red-deep) !important;
    padding: 0 !important;
    box-shadow: none !important;
}
#header.header-scrolled {
    padding: 0 !important;
    box-shadow: var(--shadow-sticky) !important;
}
#header .container { min-height:56px; display:flex; align-items:center; }
#header .logo a, #header .logo { color:var(--text-on-brand) !important; font-size:18px; font-weight:700; letter-spacing:0.02em; }
#header .logo a:hover { color:var(--text-on-brand) !important; text-decoration:none; }
#header .navbar-brand img {
    width:40px !important; height:40px !important; margin-right:12px;
    background:rgba(255,255,255,0.12); border-radius:6px; padding:3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
#header .nav-menu a { color:rgba(255,255,255,0.85) !important; font-size:14px; font-weight:500; transition:color 160ms ease-out; }
#header .nav-menu a:hover, #header .nav-menu .active > a { color:#fff !important; }
#header .nav-menu .drop-down ul { background:var(--surface-card); border:1px solid var(--divider); border-radius:var(--radius-input); box-shadow:var(--shadow-overlay); }
#header .nav-menu .drop-down ul a { color:var(--text-primary) !important; font-size:13px; }
#header .nav-menu .drop-down ul a:hover { color:var(--brand-red) !important; background:var(--surface-hover); }
.mobile-nav-toggle { color:var(--text-on-brand) !important; }

/* === Bağlantılar === */
a { color:var(--brand-red); transition:color 160ms ease-out; }
a:hover { color:var(--brand-red-hover); text-decoration:none; }

/* === 7.3 Button === */
.ayy-btn, .btn-danger, .btn-primary {
    height:40px; padding:0 20px; border-radius:var(--radius-button);
    font-size:14px; font-weight:600; cursor:pointer; border:none; display:inline-flex; align-items:center; justify-content:center;
    transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.ayy-btn-primary, .btn-danger, .btn-primary {
    background:var(--brand-red) !important; color:var(--text-on-brand) !important; border:none !important;
}
.ayy-btn-primary:hover, .btn-danger:hover, .btn-primary:hover { background:var(--brand-red-hover) !important; }
.ayy-btn-primary:active, .btn-danger:active, .btn-primary:active { background:var(--brand-red-deep) !important; }

.ayy-btn-secondary, .btn-outline-danger {
    background:var(--surface-card) !important; color:var(--brand-red) !important;
    border:1.5px solid var(--brand-red) !important; border-radius:var(--radius-button);
    height:40px; padding:0 20px; font-size:14px; font-weight:600; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.ayy-btn-secondary:hover, .btn-outline-danger:hover {
    background:var(--surface-hover) !important; border-color:var(--brand-red-hover) !important;
}

.btn-secondary {
    background:var(--surface-card) !important; color:var(--text-secondary) !important;
    border:1.5px solid var(--input-border) !important; border-radius:var(--radius-button);
    font-weight:600;
}
.btn-secondary:hover { background:var(--surface-hover) !important; color:var(--text-primary) !important; }

.btn-sm { height:36px; padding:0 16px; font-size:13px; }

/* Buton grupları sağa hizalı, primary en sağda */
.ayy-button-group, .modal-footer { display:flex; justify-content:flex-end; gap:12px; }

/* === 7.4 Form Field === */
.form-control, .ayy-input {
    border:1px solid var(--input-border); border-radius:var(--radius-input);
    background:var(--input-bg); color:var(--text-primary);
    font-size:15px; font-weight:600; padding:10px 14px; min-height:40px;
    transition:border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.form-control:focus, .ayy-input:focus {
    border:2px solid var(--input-border-focus); box-shadow:none;
    background:var(--surface-card); padding:9px 13px; outline:none;
}
.form-control::placeholder { color:var(--text-muted); font-weight:400; }
label, .form-label { font-size:14px; font-weight:600; color:var(--text-primary); margin-bottom:6px; }
.form-text, .ayy-helper { font-size:12px; color:var(--text-muted); }
.text-muted { color:var(--text-muted) !important; }

/* === 7.2 Card (3 varyant) === */
.ayy-card, .card {
    background:var(--surface-card); border-radius:var(--radius-card);
    box-shadow:var(--shadow-card); padding:24px 28px;
    transition:box-shadow 180ms ease-out;
    border:none;
}
.ayy-card.ayy-accent-bar, .card-accent { border-left:3px solid var(--brand-red); }
.ayy-card.ayy-action-card { cursor:pointer; position:relative; overflow:hidden; }
.ayy-card.ayy-action-card:hover { box-shadow:var(--shadow-card-hover); }
.ayy-card.ayy-action-card::after {
    content:''; position:absolute; bottom:0; left:20%; width:0; height:2px;
    background:var(--brand-red); transition:width 180ms ease-out;
}
.ayy-card.ayy-action-card:hover::after { width:60%; }
.card .card-header {
    background:var(--surface-hover); border-bottom:1px solid var(--divider);
    border-radius:var(--radius-card) var(--radius-card) 0 0;
    font-weight:600; font-size:14px; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-primary);
}

/* === 7.5 Status Chip === */
.ayy-chip {
    display:inline-block; padding:4px 14px; border-radius:var(--radius-pill);
    font-size:12px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
}
.ayy-chip-ok   { background:rgba(4,120,87,0.12); color:var(--status-ok); border:1px solid rgba(4,120,87,0.3); }
.ayy-chip-warn { background:rgba(180,83,9,0.12); color:var(--status-warn); border:1px solid rgba(180,83,9,0.3); }
.ayy-chip-err  { background:rgba(153,27,27,0.12); color:var(--status-err); border:1px solid rgba(153,27,27,0.3); }

/* === 7.6 Modal / Dialog === */
.modal-content {
    border:none; border-radius:var(--radius-modal); box-shadow:var(--shadow-overlay); overflow:hidden;
}
.modal-body { padding:28px 32px; color:var(--text-primary); }
.modal-footer {
    border-top:1px solid var(--divider); padding:20px 32px;
    display:flex; justify-content:flex-end; gap:12px;
}
.modal-footer .btn { opacity:1 !important; }

/* === Alert === */
.alert-danger  { background:#FEF2F2; border-color:#FECACA; color:var(--status-err); border-radius:var(--radius-input); }
.alert-success { background:#F0FDF4; border-color:#BBF7D0; color:var(--status-ok); border-radius:var(--radius-input); }
.alert-warning { background:#FFFBEB; border-color:#FDE68A; color:var(--status-warn); border-radius:var(--radius-input); }

/* === 7.8 Tablo === */
.table thead th {
    background:var(--surface-page); color:var(--text-primary);
    font-weight:600; font-size:12px; letter-spacing:0.06em; text-transform:uppercase;
    border-bottom:2px solid var(--divider);
}
.table td { color:var(--text-secondary); border-color:var(--divider); vertical-align:middle; padding:12px 16px; }
.table-hover tbody tr:hover { background-color:var(--surface-hover); }

/* === Spinner === */
.spinner-border.text-danger { color:var(--brand-red) !important; }

/* === Back to top === */
.back-to-top i { background:var(--brand-red); border-radius:var(--radius-button); }
.back-to-top i:hover { background:var(--brand-red-hover); }

/* === 7.15 Footer === */
#footer { background:var(--surface-card); border-top:1px solid var(--divider); color:var(--text-secondary); font-size:13px; }
#footer .footer-top { padding:40px 0 20px; background:var(--surface-card); }
#footer .footer-info h3 { font-size:16px; font-weight:700; color:var(--text-primary); letter-spacing:0.02em; }
#footer .footer-info p { color:var(--text-secondary); font-size:13px; }
#footer .social-links a {
    background:var(--surface-page); color:var(--text-secondary); border-radius:50%;
    width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
    transition:background-color 160ms ease-out, color 160ms ease-out;
}
#footer .social-links a:hover { background:var(--brand-red); color:var(--text-on-brand); }
#footer .copyright { padding:20px 0; color:var(--text-muted); font-size:12px; }
#footer .copyright strong { color:var(--text-secondary); }

/* === Section eyebrow === */
.section-title h2 { font-size:12px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--text-muted); }
.section-title p { color:var(--text-primary); font-size:21px; font-weight:600; letter-spacing:-0.005em; }

/* === Render body / ana içerik === */
#renderbody { padding-top:59px; min-height:calc(100vh - 115px); }
section { padding:40px 0; }

/* === Wait Modal === */
#waitModal .modal-content { border-radius:var(--radius-modal); box-shadow:var(--shadow-overlay); }
#waitModal .modal-body { display:flex; align-items:center; gap:16px; padding:28px 32px; }
#waitModal .modal-body h5 { margin:0; font-weight:600; color:var(--text-primary); }

/* === Utility === */
.text-brand  { color:var(--brand-red); }
.bg-brand    { background-color:var(--brand-red); color:var(--text-on-brand); }
.border-brand { border-color:var(--brand-red) !important; }

/* === Badge (Bootstrap override) === */
.badge, .bg-danger { border-radius:var(--radius-pill); }
.bg-danger { background-color:var(--brand-red) !important; }
