/* CarQR arayüz katmanı — Bootstrap üzerine marka stilleri */

:root {
    --cq-navy: #24285b;
    --cq-navy-600: #2f3576;
    --cq-yellow: #ffd200;
    --cq-bg: #f5f6fa;
    --cq-surface: #ffffff;
    --cq-border: #e6e8f0;
    --cq-text: #1d2040;
    --cq-muted: #6b6f8a;
    --cq-radius: 16px;
    --cq-shadow: 0 1px 2px rgba(20, 23, 60, .04), 0 8px 24px rgba(20, 23, 60, .06);
}

body {
    background: var(--cq-bg);
    color: var(--cq-text);
    font-family: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

.text-muted { color: var(--cq-muted) !important; }

/* ---------- Navbar ---------- */
.cq-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--cq-border);
}

.cq-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--cq-text);
    text-decoration: none;
}

.cq-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cq-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cq-brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.cq-brand-tag { font-size: .75rem; color: var(--cq-muted); line-height: 1.1; }

.cq-navbar .nav-link {
    font-weight: 600;
    color: var(--cq-muted);
    border-radius: 10px;
    padding: .5rem .85rem !important;
}

.cq-navbar .nav-link:hover,
.cq-navbar .nav-link.active { color: var(--cq-navy); background: var(--cq-bg); }

.cq-navbar .navbar-toggler { border: 1px solid var(--cq-border); border-radius: 10px; padding: .4rem .6rem; }
.cq-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(36, 40, 91, .15); }

/* ---------- Generic building blocks ---------- */
.cq-page { padding-top: 2rem; padding-bottom: 3rem; }

.cq-page-head { text-align: center; margin-bottom: 2rem; }
.cq-page-head h1 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .35rem; }
.cq-page-head p { color: var(--cq-muted); margin: 0; }

.cq-card {
    background: var(--cq-surface);
    border: 1px solid var(--cq-border);
    border-radius: var(--cq-radius);
    box-shadow: var(--cq-shadow);
}

.cq-card-body { padding: 1.5rem; }
@media (max-width: 575.98px) { .cq-card-body { padding: 1.15rem; } }

.cq-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(36, 40, 91, .07);
    color: var(--cq-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cq-section-title { font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2rem); }

.underline { z-index: 0; }

.btn { font-weight: 700; border-radius: 12px; }
.btn-lg { padding: .8rem 1.25rem; border-radius: 14px; }
.btn-primary { --bs-btn-bg: var(--cq-navy); --bs-btn-border-color: var(--cq-navy); --bs-btn-hover-bg: var(--cq-navy-600); --bs-btn-hover-border-color: var(--cq-navy-600); }
.btn-accent { background: var(--cq-yellow); border-color: var(--cq-yellow); color: var(--cq-text); }
.btn-accent:hover, .btn-accent:focus { background: #f2c700; border-color: #f2c700; color: var(--cq-text); }

.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 12px; border-color: var(--cq-border); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--cq-navy); box-shadow: 0 0 0 3px rgba(36, 40, 91, .12); }
.form-text { color: var(--cq-muted); }

.alert { border-radius: 12px; }

/* ---------- Home ---------- */
.cq-section { padding: 2.25rem 0; }
@media (max-width: 575.98px) { .cq-section { padding: 1.75rem 0; } }
.cq-hero {
    background: radial-gradient(1200px 400px at 50% -10%, rgba(255, 210, 0, .18), transparent 60%),
                linear-gradient(180deg, #ffffff 0%, var(--cq-bg) 100%);
    padding: 2rem 0 1.75rem;
}

.cq-hero h1 { font-weight: 800; font-size: clamp(1.7rem, 4.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em; }
.cq-hero .lead { color: var(--cq-muted); font-size: clamp(1rem, 2.4vw, 1.2rem); }

.cq-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--cq-border);
    color: var(--cq-navy);
}

.cq-feature { height: 100%; padding: .85rem 1rem; text-align: left; display: flex; align-items: center; gap: .75rem; }
.cq-feature .cq-icon { width: 38px; height: 38px; border-radius: 10px; }
.cq-feature h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .1rem; }
.cq-feature p { font-size: .8rem; line-height: 1.35; color: var(--cq-muted); margin: 0; }
@media (max-width: 575.98px) {
    .cq-feature { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .75rem; }
}

.cq-gallery { scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
.cq-gallery .item { scroll-snap-align: start; }
.cq-gallery img { border-radius: var(--cq-radius); box-shadow: var(--cq-shadow); transition: transform .2s ease; }
.cq-gallery a:hover img { transform: translateY(-3px); }

.cq-price { height: 100%; }
.cq-price .price { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.cq-price ul li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .6rem; }
.cq-price ul i { margin-top: .2rem; }

.cq-faq .accordion-item { border: 1px solid var(--cq-border); border-radius: 12px !important; margin-bottom: .6rem; overflow: hidden; }
.cq-faq .accordion-button { font-weight: 700; color: var(--cq-text); }
.cq-faq .accordion-button:not(.collapsed) { background: #fff; color: var(--cq-navy); box-shadow: none; }
.cq-faq .accordion-button:focus { box-shadow: none; }

/* ---------- Public QR page ---------- */
.cq-qr-wrap { max-width: 520px; margin: 0 auto; }

.cq-owner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--cq-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cq-note {
    background: #fffbea;
    border: 1px solid #ffe88a;
    border-radius: 12px;
    padding: .9rem 1rem;
    display: flex;
    gap: .65rem;
    text-align: left;
}

.cq-contact .btn { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1fb957; border-color: #1fb957; color: #fff; }
.btn-telegram { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn-telegram:hover, .btn-telegram:focus { background: #1b8bc0; border-color: #1b8bc0; color: #fff; }

.cq-chip { border-radius: 999px !important; font-weight: 600; padding: .4rem .9rem; background: #fff; border-color: var(--cq-border); color: var(--cq-text); }
.cq-chip:hover { background: var(--cq-bg); border-color: var(--cq-border); color: var(--cq-text); }
.btn-check:checked + .cq-chip { background: var(--cq-navy); border-color: var(--cq-navy); color: #fff; }

/* ---------- QR list ---------- */
.cq-qr-item .cq-actions { display: grid; grid-template-columns: repeat(4, auto); gap: .5rem; }
@media (max-width: 575.98px) {
    .cq-qr-item .cq-actions { grid-template-columns: repeat(2, 1fr); }
}

.cq-stat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--cq-bg);
    color: var(--cq-muted);
}

/* ---------- Settings ---------- */
.cq-settings-section + .cq-settings-section { margin-top: 1.25rem; }
.cq-settings-section h2 { font-size: 1.1rem; font-weight: 800; margin: 0; }
.cq-settings-section .cq-help { font-size: .9rem; color: var(--cq-muted); }
.cq-settings-section details summary { cursor: pointer; font-weight: 600; color: var(--cq-navy); font-size: .9rem; }
.cq-settings-section details ol { padding-left: 1.2rem; margin: .6rem 0 0; font-size: .9rem; color: var(--cq-muted); }

.cq-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--cq-bg);
    border: 1px dashed var(--cq-border);
    border-radius: 10px;
    padding: .55rem .8rem;
    word-break: break-all;
    font-size: .9rem;
}

.cq-savebar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: rgba(245, 246, 250, .92);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--cq-border);
    padding: .85rem 0;
    margin-top: 1.5rem;
}

/* ---------- Messages ---------- */
.cq-msg-time { font-size: .8rem; color: var(--cq-muted); }

/* ---------- Footer ---------- */
.cq-footer { border-top: 1px solid var(--cq-border); background: #fff; padding: 1.75rem 0; font-size: .9rem; }
.cq-footer a { color: var(--cq-muted); text-decoration: none; }
.cq-footer a:hover { color: var(--cq-navy); }

.min-w-0 { min-width: 0; }

/* ---------- Toggles ---------- */
.cq-switch { min-height: 44px; display: flex; align-items: center; gap: .6rem; padding-left: 0; margin: 0; }
.cq-switch .form-check-input { width: 2.75rem; height: 1.5rem; margin: 0; float: none; cursor: pointer; flex-shrink: 0; }
.cq-switch .form-check-input:checked { background-color: #12a150; border-color: #12a150; }
.cq-switch .form-check-input:focus { box-shadow: 0 0 0 3px rgba(36, 40, 91, .15); }
.cq-switch .form-check-label { cursor: pointer; font-weight: 600; font-size: .9rem; }

.cq-stat-on { background: #e8f7ee; color: #12803f; }
.cq-stat-off { background: #fdecec; color: #b42318; }
.cq-stat i.fa-circle { font-size: .45rem; }

/* ---------- How it works ---------- */
.cq-step { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .85rem 1rem; border-radius: var(--cq-radius); background: var(--cq-bg); }
.cq-step h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .1rem; }
.cq-step p { font-size: .85rem; color: var(--cq-muted); margin: 0; }
.cq-step-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--cq-yellow); color: var(--cq-text); font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Modal ---------- */
.cq-modal { border: 0; border-radius: var(--cq-radius); box-shadow: 0 24px 64px rgba(20, 23, 60, .18); }

/* ---------- Touch targets & focus ---------- */
@media (max-width: 767.98px) {
    .cq-qr-item .cq-actions .btn, .cq-footer a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
a:focus-visible, .btn:focus-visible, .accordion-button:focus-visible {
    outline: 3px solid rgba(36, 40, 91, .35);
    outline-offset: 2px;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
