/* Cookie consent banner + dialog, footer additions (app agreements, store badges).
   Uses the site's :root variables from style.css. */

/* ---------- Banner ---------- */
.cc-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    background: var(--color-white, #fff);
    color: var(--color-text, #333);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    font-size: var(--font-size-small, 14px);
    line-height: 1.5;
}
.cc-banner[hidden] { display: none; }
.cc-banner__inner {
    display: flex;
    gap: 16px 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.cc-banner__text { flex: 1 1 420px; }
.cc-banner__text p { margin: 0; }
.cc-banner__title {
    font-weight: var(--font-weight-semibold, 600);
    margin-bottom: 4px !important;
    font-size: var(--font-size-base, 16px);
}
.cc-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* All three choices have equal visual weight (no nudging). */
.cc-btn {
    font: inherit;
    font-weight: var(--font-weight-semibold, 600);
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid var(--color-primary, #1d00f5);
    background: var(--color-white, #fff);
    color: var(--color-primary, #1d00f5);
    cursor: pointer;
}
.cc-btn:hover { background: var(--color-primary, #1d00f5); color: var(--color-white, #fff); }
.cc-btn:focus-visible,
.cc-dialog__close:focus-visible,
.cc-switch:focus-visible,
.footer__cookie-btn:focus-visible,
.footer__store-badge:focus-visible {
    outline: 3px solid var(--color-primary, #1d00f5);
    outline-offset: 2px;
}
.cc-link { color: var(--color-primary, #1d00f5); text-decoration: underline; }

/* ---------- Dialog ---------- */
.cc-dialog {
    /* The site's global reset zeroes margins; restore the native modal centring. */
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    overflow: auto;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    border: none;
    border-radius: 14px;
    padding: 0;
    color: var(--color-text, #333);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.cc-dialog::backdrop { background: rgba(10, 10, 26, 0.55); }
.cc-dialog__form { position: relative; padding: 24px; }
.cc-dialog__title { font-size: var(--font-size-h4, 20px); margin: 0 32px 8px 0; }
.cc-dialog__intro,
.cc-option__text { font-size: var(--font-size-small, 14px); line-height: 1.5; color: var(--color-text-light, #666); margin: 0; }
.cc-option {
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 12px;
}
.cc-option__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    cursor: pointer;
}
.cc-option__title { font-weight: var(--font-weight-semibold, 600); }
.cc-option__always { font-size: 14px; font-weight: 600; color: #1e7e34; white-space: nowrap; }
.cc-switch { width: 22px; height: 22px; accent-color: var(--color-primary, #1d00f5); flex-shrink: 0; }
.cc-dialog__policy { margin: 14px 0 0; font-size: var(--font-size-small, 14px); }
.cc-dialog__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.cc-dialog__actions .cc-btn { flex: 1 1 140px; }
.cc-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--color-text-light, #666);
    cursor: pointer;
    border-radius: 8px;
}

/* ---------- Contact map placeholder (before consent) ---------- */
.cc-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: var(--color-bg, #f5f5f5);
    color: var(--color-text, #333);
    font-size: var(--font-size-small, 14px);
}

/* ---------- Footer additions ---------- */
.footer__links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__subtitle {
    font-size: var(--font-size-base, 16px);
    font-weight: var(--font-weight-semibold, 600);
    color: var(--color-text, #333);
    margin: var(--spacing-md, 16px) 0 var(--spacing-sm, 8px);
}
/* Wider left (links) block so the four link columns fit; right (social/apps/contact) narrower. */
@media (min-width: 1024px) {
    .footer__main-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
    .footer__links-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-lg, 24px); }
}
.footer__cookie-btn {
    font: inherit;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}
.footer__apps-section { padding: 0 var(--spacing-xxl, 48px); }
/* Pull "Uygulamayı İndirin" closer to the social block above it. */
.footer__social-section { padding-bottom: var(--spacing-sm, 8px); margin-bottom: 0; }
.footer__store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer__store-badge { display: inline-block; border-radius: 8px; }
.footer__store-badge img { display: block; height: 44px; width: auto; }


@media (max-width: 767px) {
    .cc-banner { left: 8px; right: 8px; bottom: 8px; }
    .cc-banner__actions { width: 100%; }
    .cc-banner__actions .cc-btn { flex: 1 1 auto; }
    .footer__links-grid { grid-template-columns: 1fr; }
}

/* Company identity line (künye) above the copyright. */
.footer__kunye {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 8px;
}
/* KVKK notice under public forms (replaces the old required checkboxes). */
.form-kvkk-notice {
    font-size: var(--font-size-small, 14px);
    line-height: 1.5;
    color: var(--color-text-light, #666);
    margin: 8px 0 16px;
}
.form-kvkk-notice a { color: var(--color-primary, #1d00f5); text-decoration: underline; }
