/* QR Hub — misafir hızlı işlemler + modals */
.qr-page {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, #052847 0%, #073866 35%, #0c5a9e 70%, #1a6dad 100%);
    padding: 20px;
    color: #fff;
}

.qr-container { max-width: 900px; margin: 0 auto; }

.qr-subhead { margin-bottom: 20px; }
.qr-subhead h1 { font-size: 22px; font-weight: 800; margin-top: 8px; }
.qr-back {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qr-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 480px) {
    .hub-top-col--quick .qr-quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .hub-top-col--quick .qr-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

.hub-top .menu-column { gap: 10px; }
.hub-top .menu-btn { padding: 14px 16px; }
.hub-top .menu-icon { width: 44px; height: 44px; font-size: 18px; }

.qr-wifi-copy {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.qr-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    min-height: 88px;
    border: none;
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition: transform .2s, background .2s;
    touch-action: manipulation;
}
.qr-quick-btn:active { transform: scale(.97); }
.qr-quick-btn:hover { background: rgba(255,255,255,.22); }
.qr-quick-btn i { font-size: 22px; }
.qr-quick-btn span { font-size: 12px; font-weight: 700; line-height: 1.2; }
.qr-quick-btn small { font-size: 10px; opacity: .75; font-weight: 500; }
.qr-quick-btn--waiter i { color: #fbbf24; }
.qr-quick-btn--reception i { color: #34d399; }
.qr-quick-btn--pillow i { color: #a78bfa; }
.qr-quick-btn--cleaning i { color: #f472b6; }
.qr-quick-btn--tv i { color: #60a5fa; }

.qr-quick-btn--hero {
    min-height: 96px;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.28);
}

.qr-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .85;
    margin: 0 0 10px 4px;
    color: #fff;
}

.qr-guest-hint {
    font-size: 12px;
    line-height: 1.45;
    color: #6B7280;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 16px 0;
}

.qr-hours-hint {
    font-size: 12px;
    line-height: 1.45;
    color: #1E40AF;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 8px 16px 0;
}
.qr-hours-hint--warn {
    color: #92400E;
    background: #FEF3C7;
    border-color: #FCD34D;
}

.qr-field-hint {
    font-size: 11px;
    color: #9CA3AF;
    margin: -2px 0 6px;
}

@media (prefers-reduced-motion: reduce) {
    .qr-quick-btn, .qr-modal, .qr-toast { transition: none; animation: none; }
}

body.qr-modal-open {
    overflow: hidden;
    touch-action: none;
}

.qr-accordion {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
}
.qr-accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}
.qr-accordion-body {
    display: none;
    padding: 0 16px 16px;
}
.qr-accordion.open .qr-accordion-body { display: block; }
.qr-accordion.open .qr-acc-chevron { transform: rotate(180deg); }
.qr-acc-chevron { transition: transform .2s; opacity: .7; }

@media (min-width: 900px) {
    .qr-accordion-head { display: none; }
    .qr-accordion-body { display: block !important; padding: 0; }
    .qr-accordion { background: transparent; border: none; margin-bottom: 0; }
}

/* index.php inline wifi-pair — kanallar sayfasında gerekmez */

/* Modal — mobil bottom sheet (iOS dvh + sticky footer) */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overscroll-behavior: contain;
}
.qr-modal-overlay.active { display: flex; }
@media (min-width: 560px) {
    .qr-modal-overlay {
        align-items: center;
        padding: 16px;
    }
}

.qr-modal {
    background: #fff;
    color: #111827;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 440px;
    max-height: min(92dvh, 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    animation: qrSlideUp .25s ease;
    box-shadow: 0 -8px 40px rgba(0,0,0,.22);
}
.qr-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 8px auto 4px;
    flex-shrink: 0;
}
@media (min-width: 560px) {
    .qr-modal::before { display: none; }
}
@media (min-width: 560px) {
    .qr-modal {
        border-radius: 20px;
        max-height: min(88dvh, 640px);
        box-shadow: 0 20px 60px rgba(0,0,0,.25);
    }
}
@keyframes qrSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.qr-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 16px 0;
}
.qr-modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-top: 2px;
}
.qr-modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F3F4F6;
    color: #374151;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}
.qr-modal-close:active { background: #E5E7EB; }

.qr-modal > .qr-guest-hint,
.qr-modal > .qr-hours-hint {
    flex-shrink: 0;
    margin: 10px 16px 0;
}

.qr-modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.qr-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 16px 8px;
}

.qr-modal h3 { font-size: 18px; font-weight: 800; margin: 0 0 16px; }
.qr-field { margin-bottom: 12px; }
.qr-field:last-child { margin-bottom: 0; }
.qr-field label { display: block; font-size: 12px; font-weight: 700; color: #6B7280; margin-bottom: 4px; }
.qr-field input, .qr-field select, .qr-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
}
.qr-field textarea { min-height: 72px; resize: vertical; }
@media (max-height: 740px) {
    .qr-field textarea { min-height: 56px; }
    .qr-pillow-opt { padding: 10px 12px; }
    .qr-modal-header h3 { font-size: 17px; }
}

.qr-pillow-options { display: grid; gap: 8px; margin-bottom: 12px; }
.qr-pillow-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}
.qr-pillow-opt:has(input:checked) { border-color: #073866; background: #EFF6FF; }
.qr-pillow-opt input { width: 18px; height: 18px; }

.qr-modal-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #E5E7EB;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,.04);
}
.qr-action-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    touch-action: manipulation;
}
.qr-action-btn--primary { background: #073866; color: #fff; }
.qr-action-btn--ghost { background: #F3F4F6; color: #374151; }
.qr-action-btn:disabled { opacity: .6; cursor: not-allowed; }

.qr-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: transform .3s, opacity .3s;
    max-width: 90%;
    text-align: center;
}
.qr-toast[role="status"] { pointer-events: none; }
.qr-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.qr-toast.warn { background: #92400E; }

/* TV kanal listesi — çocuk kilidi bilgi metni */
.qr-pin-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.95);
}
.qr-pin-banner i { opacity: .85; }
.qr-pin-banner strong {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
}

.qr-search {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 16px;
}
.qr-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qr-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.qr-chip.active { background: #fff; color: #073866; }

.qr-channel-list { display: flex; flex-direction: column; gap: 6px; }
.qr-channel-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255,255,255,.12);
    border-radius: 12px;
}
.qr-channel-line {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}
.qr-channel-no {
    min-width: 44px;
    font-weight: 800;
    font-size: 16px;
    text-align: center;
    background: rgba(255,255,255,.15);
    padding: 6px 8px;
    border-radius: 8px;
}
.qr-channel-name { font-weight: 600; font-size: 14px; }

.qr-empty { text-align: center; padding: 40px 20px; opacity: .8; }
.qr-empty i { font-size: 40px; margin-bottom: 12px; display: block; }

.qr-wifi-copy {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 8px;
}

/* Günün kampanyası — otel duyuru paneli (reklam engelleyici dostu sınıflar) */
.qr-gunluk-duyuru {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.qr-gunluk-duyuru[hidden] { display: none !important; }
.qr-gunluk-duyuru.is-open { display: flex; }
.qr-gunluk-duyuru__kapak {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}
.qr-gunluk-duyuru__panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    max-height: 88vh;
    animation: qrDuyuruIn .35s ease;
}
.qr-gunluk-duyuru__kapat {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-gunluk-duyuru__kapat:hover { background: #F3F4F6; }
.qr-gunluk-duyuru__icerik {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    background: #fff;
}
.qr-gunluk-duyuru__icerik img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}
.qr-gunluk-duyuru__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
@keyframes qrDuyuruIn {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
