/* =========================================================
   Demo Modu — Tur Sistemi & Yardım İkonları
   ========================================================= */

/* --- Demo Banner (sayfanın üstü) --- */
.demo-banner {
    position: sticky;
    top: 0;
    z-index: 8000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.4);
}

.demo-banner .demo-banner-text {
    flex: 1;
}

.demo-banner .btn-demo-cik {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.demo-banner .btn-demo-cik:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.demo-banner .btn-demo-tur {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.demo-banner .btn-demo-tur:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* --- Spotlight (highlight kutusu) --- */
.demo-spotlight {
    position: fixed;
    border: 3px solid #667eea;
    border-radius: 10px;
    box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.58);
    z-index: 9990;
    pointer-events: none;
    transition: all 0.32s cubic-bezier(.4, 0, .2, 1);
    display: none;
}

/* --- Tooltip balonu --- */
.demo-tooltip {
    position: fixed;
    z-index: 9995;
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px 16px;
    max-width: 320px;
    min-width: 260px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(102, 126, 234, 0.25);
    display: none;
    transition: top 0.28s cubic-bezier(.4, 0, .2, 1), left 0.28s cubic-bezier(.4, 0, .2, 1);
}

[data-tema="gece"] .demo-tooltip,
[data-tema="geceyarisi"] .demo-tooltip,
[data-tema="alacakaranlik"] .demo-tooltip {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.demo-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.demo-sayac {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    padding: 2px 10px;
}

.demo-kapat {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.demo-kapat:hover {
    color: #ef4444;
}

.demo-tooltip-baslik {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #1a202c);
    margin-bottom: 8px;
    line-height: 1.3;
}

.demo-tooltip-aciklama {
    font-size: 14.5px;
    color: var(--text, #2d3748);
    line-height: 1.7;
    margin-bottom: 14px;
}

.demo-tooltip-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.demo-btn {
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-ileri {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex: 1;
}

.demo-ileri:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.demo-bitir {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    flex: 1;
}

.demo-bitir:hover {
    opacity: 0.9;
}

.demo-geri {
    background: var(--bg, #f4f6fb);
    color: var(--text-muted, #718096);
    border: 1px solid var(--border, #e2e8f0);
}

.demo-geri:hover {
    background: var(--border, #e2e8f0);
}

.demo-atla {
    background: none;
    color: #aaa;
    font-size: 12px;
    padding: 7px 8px;
    margin-left: auto;
}

.demo-atla:hover {
    color: #667eea;
}

/* --- Yardım İkonu (?) --- */
.yardim-ikonu {
    background: none;
    border: 1.5px solid #667eea;
    color: #667eea;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.yardim-ikonu:hover,
.yardim-ikonu:focus {
    background: #667eea;
    color: #fff;
    outline: none;
}

/* Popover'ı biraz güzelleştir */
.popover {
    border-radius: 12px;
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    max-width: 280px;
}

.popover-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
}

.popover-body {
    padding: 12px 14px;
    line-height: 1.6;
    color: #4a5568;
}

/* --- Demo kartı (dashboard'da Örnek Galeriyi Gez) --- */
.demo-davet-card {
    border: 2px dashed #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-davet-card:hover {
    border-color: #764ba2;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}
