/* HamamSpaAdvisor Platform v2 Styles */

/* Navbar */
.nav-apply-link { color: var(--primary, #c9a227) !important; font-weight: 600; }

/* Notification Bell */
.notif-bell-wrap { position: relative; display: inline-flex; align-items: center; }
.notif-bell { position: relative; color: inherit; font-size: 1.2rem; padding: 0.4rem 0.6rem; text-decoration: none; }
.notif-bell:hover { color: var(--primary, #c9a227); }
.notif-badge {
    position: absolute; top: 0; right: 0;
    background: #e74c3c; color: #fff; font-size: 0.65rem;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.admin-topbar .notif-bell, .business-topbar .notif-bell { color: #555; }
.nav-actions .notif-bell { color: #333; }

/* Notification List */
.notif-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 1rem; border-bottom: 1px solid #eee; gap: 1rem;
}
.notif-item.unread { background: #fffbf0; border-left: 3px solid var(--primary, #c9a227); }
.notif-item-body p { margin: 0.25rem 0; color: #666; font-size: 0.9rem; }
.notif-item-body small { color: #999; }

/* Sponsored Badge */
.badge-sponsored {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff; font-size: 0.75rem; padding: 0.25rem 0.6rem;
    border-radius: 4px; font-weight: 600;
}
.business-card-image .badge-sponsored { position: absolute; top: 10px; left: 10px; z-index: 2; }

/* Sponsored Section */
.sponsored-section { margin-bottom: 2rem; }
.sponsored-section h2 { font-size: 1.25rem; margin-bottom: 1rem; color: #333; }
.sponsored-section h2 i { color: #ff6b35; margin-right: 0.5rem; }
.listing-divider { margin: 2rem 0; border-color: #eee; }

/* Detail CTA Bar — sticky sadece detay dışında; detay sayfası detail-premium.css ile yönetilir */
body:not(.page-detail) .detail-cta-bar {
    background: #fff; border-bottom: 1px solid #eee;
    padding: 1rem 0; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn-cta { padding: 0.65rem 1.25rem; font-weight: 600; border-radius: 8px; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-cta.btn-outline { border: 2px solid var(--primary, #c9a227); color: var(--primary, #c9a227); background: transparent; text-decoration: none; }
.btn-cta.btn-outline:hover { background: var(--primary, #c9a227); color: #fff; }

/* Apply Form */
.apply-hero { text-align: center; margin-bottom: 2rem; }
.apply-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.apply-form-card { max-width: 800px; margin: 0 auto; padding: 2rem; }
.apply-form h3 { font-size: 1.1rem; margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary, #c9a227); }
.apply-success-card { text-align: center; padding: 3rem; max-width: 500px; margin: 2rem auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.apply-success-card i { font-size: 3rem; color: #27ae60; margin-bottom: 1rem; }

/* Messages */
.messages-layout { display: flex; border: 1px solid #eee; border-radius: 12px; overflow: hidden; min-height: 450px; background: #fff; }
.messages-sidebar { width: 280px; border-right: 1px solid #eee; overflow-y: auto; flex-shrink: 0; }
.conv-item { display: block; padding: 1rem; border-bottom: 1px solid #f0f0f0; text-decoration: none; color: inherit; position: relative; }
.conv-item:hover, .conv-item.active { background: #f8f4eb; }
.conv-item small { display: block; color: #999; margin-top: 0.25rem; }
.conv-unread { position: absolute; top: 1rem; right: 1rem; background: #e74c3c; color: #fff; font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 10px; }
.messages-main { flex: 1; display: flex; flex-direction: column; }
.messages-header { padding: 1rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.messages-thread { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.msg-bubble { max-width: 75%; padding: 0.75rem 1rem; border-radius: 12px; }
.msg-bubble.sent { align-self: flex-end; background: var(--primary, #c9a227); color: #fff; }
.msg-bubble.received { align-self: flex-start; background: #f0f0f0; }
.msg-bubble p { margin: 0; }
.msg-bubble small { opacity: 0.7; font-size: 0.75rem; }
.messages-compose { padding: 1rem; border-top: 1px solid #eee; display: flex; gap: 0.5rem; align-items: flex-end; }
.messages-compose textarea { flex: 1; resize: none; }
.messages-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; }
.messages-empty i { font-size: 3rem; margin-bottom: 1rem; }

/* Package Card */
.package-current-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff; padding: 2rem; border-radius: 12px; text-align: center;
}
.package-badge { font-size: 2.5rem; color: var(--primary, #c9a227); margin-bottom: 0.5rem; }
.package-dates { display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; flex-wrap: wrap; }
.package-features { list-style: none; padding: 0; margin-top: 1.5rem; text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
.package-features li { padding: 0.4rem 0; }
.package-features i { color: #27ae60; margin-right: 0.5rem; }

/* Reservation Detail */
.res-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.res-detail-grid label { display: block; font-size: 0.8rem; color: #999; margin-bottom: 0.25rem; }

/* Filter tabs (admin) */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tabs a { padding: 0.4rem 1rem; border-radius: 20px; background: #f0f0f0; text-decoration: none; color: #555; font-size: 0.9rem; }
.filter-tabs a.active { background: var(--primary, #c9a227); color: #fff; }

@media (max-width: 768px) {
    .messages-layout { flex-direction: column; min-height: auto; }
    .messages-sidebar { width: 100%; max-height: 200px; }
    .detail-cta-buttons { flex-direction: column; }
    .btn-cta { width: 100%; justify-content: center; }
    .package-dates { flex-direction: column; gap: 0.5rem; }
    .checkout-layout { grid-template-columns: 1fr; }
}

/* Payment & Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 960px; margin: 0 auto; }
.checkout-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f0f0f0; }
.checkout-row.checkout-total { border-bottom: none; font-size: 1.2rem; margin-top: 0.5rem; padding-top: 1rem; border-top: 2px solid var(--primary, #c9a227); }
.checkout-total-box { display: flex; justify-content: space-between; align-items: center; background: #f8f4eb; padding: 1rem; border-radius: 8px; margin: 1rem 0; font-size: 1.1rem; }
.payment-demo-note { font-size: 0.85rem; color: #888; margin: 1rem 0; }
.payment-result-card { max-width: 520px; margin: 2rem auto; text-align: center; padding: 3rem 2rem; background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.payment-result-card.success .payment-result-icon { color: #27ae60; font-size: 4rem; }
.payment-result-card.failed .payment-result-icon { color: #e74c3c; font-size: 4rem; }
.payment-amount { font-size: 1.5rem; font-weight: 700; color: var(--primary, #c9a227); }
.payment-result-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.payment-breakdown { background: #f9f9f9; padding: 1rem; border-radius: 8px; }
.stats-cards .stat-card { background: #fff; padding: 1.25rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stats-cards .stat-card span { display: block; font-size: 0.85rem; color: #888; }
.stats-cards .stat-card strong { font-size: 1.4rem; color: #333; }
.res-payment-status { margin-top: 0.75rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }

/* Harita */
.map-card .map-directions-btn { font-weight: 600; }
.map-address-fallback { margin-bottom: 0.5rem; }

/* ===== DETAIL — Available Slots (scoped) ===== */
.business-detail-page .available-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    width: 100%;
}

.business-detail-page .slot-chip {
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #E5E7EB;
    background: #fff;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: 0.15s;
}

.business-detail-page .slot-chip:hover {
    border-color: #C9A84C;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.business-detail-page .slot-chip.active {
    border-color: #C9A84C;
    background: #FFF8E6;
    box-shadow: 0 14px 34px rgba(201, 168, 76, 0.14);
    position: relative;
}

.business-detail-page .slot-chip.active::after {
    content: '\\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 12px;
    color: #C9A84C;
    font-size: 12px;
}

.business-detail-page .slot-time {
    font-weight: 700;
    font-size: 14px;
    color: #101B33;
}

.business-detail-page .slot-capacity {
    font-size: 12px;
    color: #6B7280;
}

.business-detail-page .availability-loader {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: #6B7280;
}
.business-detail-page .availability-loader.is-visible { display: block; }

.business-detail-page .availability-empty {
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px dashed #E5E7EB;
    border-radius: 14px;
    background: #F8FAFC;
    color: #6B7280;
    font-size: 13px;
}

@media (max-width: 992px) {
    .business-detail-page .available-slots {
        grid-template-columns: 1fr;
    }
}

/* Kupon */
.coupon-box { padding-top: 1rem; border-top: 1px solid #eee; }
.coupon-box h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.discount-row { color: #27ae60; }
.coupon-form .input-group { gap: 0; }

/* Şube, QR, Kampanya, Konum */
.badge-verified { background: #1d9bf0; color: #fff; font-size: 0.75rem; padding: 0.2rem 0.5rem; border-radius: 4px; }
.distance-tag { color: var(--primary, #c9a227); font-weight: 600; }
.branch-selector-block select { max-width: 100%; }
.checkin-panel { text-align: center; }
.checkin-code-input { letter-spacing: 0.3em; font-weight: 700; font-family: monospace; }
.checkin-code-display { font-size: 2rem; font-weight: 700; letter-spacing: 0.25em; font-family: monospace; background: #f8f4eb; padding: 1rem; border-radius: 8px; text-align: center; margin-top: 1rem; }
.qr-checkin-box { background: #f9f9f9; padding: 1.5rem; border-radius: 12px; text-align: center; }
.qr-image-wrap img { border: 4px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.1); border-radius: 8px; }
.reservation-detail-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.reservation-detail-header { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.reservation-detail-header img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.campaign-grid-home { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.campaign-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.2s; text-decoration: none; color: inherit; display: block; }
.campaign-card:hover { transform: translateY(-4px); }
.campaign-card-image { position: relative; height: 160px; background: #f0ebe0; }
.campaign-card-image img { width: 100%; height: 100%; object-fit: cover; }
.campaign-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; color: var(--primary, #c9a227); opacity: 0.5; }
.campaign-placeholder.large { min-height: 280px; font-size: 5rem; }
.campaign-discount-badge { position: absolute; top: 12px; left: 12px; background: #e74c3c; color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-weight: 700; font-size: 0.85rem; }
.campaign-discount-badge.large { font-size: 1rem; padding: 0.5rem 1rem; }
.campaign-card-body { padding: 1rem; }
.campaign-business { font-size: 0.85rem; color: #888; }
.campaign-card-body h3 { font-size: 1.1rem; margin: 0.25rem 0; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: #666; margin-top: 0.5rem; }
.campaign-detail-image { position: relative; border-radius: 12px; overflow: hidden; }
.campaign-detail-image img { width: 100%; border-radius: 12px; }
.detail-campaigns .campaign-banner { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.location-filter-group .btn { margin-bottom: 0.5rem; }

/* PayTR */
.paytr-iframe-wrap { min-height: 400px; border-radius: 8px; overflow: hidden; background: #f9f9f9; padding: 0.5rem; }

/* AI Öneri */
.ai-recommend-hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 4rem 0 3rem; text-align: center; }
.ai-hero-content h1 { font-size: 2.2rem; margin: 1rem 0 0.5rem; }
.ai-hero-content p { opacity: 0.9; max-width: 560px; margin: 0 auto; }
.ai-badge { display: inline-block; background: rgba(201,162,39,0.2); color: #e8d5a3; padding: 0.35rem 1rem; border-radius: 20px; font-size: 0.9rem; }
.nav-ai-link { color: var(--primary, #c9a227) !important; font-weight: 600; }
.ai-form-card h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.ai-empty-state { text-align: center; padding: 3rem 2rem; }
.ai-empty-state i { font-size: 3rem; color: #ccc; margin-bottom: 1rem; }
.ai-results-header { margin-bottom: 1.5rem; }
.ai-results-header h2 { font-size: 1.5rem; }
.ai-results-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.ai-result-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; position: relative; overflow: hidden; }
.ai-result-rank { position: absolute; top: 12px; left: 12px; background: var(--primary, #c9a227); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; z-index: 1; }
.ai-result-image { position: relative; border-radius: 8px; overflow: hidden; min-height: 120px; }
.ai-result-image img { width: 100%; height: 100%; object-fit: cover; min-height: 120px; }
.ai-result-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.85rem; color: #888; margin-bottom: 0.25rem; }
.ai-result-stats { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0; font-size: 0.9rem; }
.ai-why-box { background: #f8f4eb; padding: 0.75rem 1rem; border-radius: 8px; margin: 0.75rem 0; font-size: 0.9rem; }
.ai-why-box ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.ai-why-box li { margin-bottom: 0.2rem; }
.ai-services { margin: 0.75rem 0; font-size: 0.85rem; }
.ai-service-tag { display: inline-block; background: #f0f0f0; padding: 0.2rem 0.5rem; border-radius: 4px; margin: 0.2rem 0.2rem 0 0; }
@media (max-width: 768px) {
    .ai-result-card { grid-template-columns: 1fr; }
    .ai-result-image { min-height: 180px; }
}

/* Güvenlik & Raporlama */
.security-alert-list { list-style: none; padding: 0; margin: 0; }
.security-alert-list li { padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; border-radius: 6px; background: #fff8e6; border-left: 3px solid #f0ad4e; }
.security-alert-list li.severity-high { background: #fdecea; border-left-color: #e74c3c; }
.error-log-preview { background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: 8px; font-size: 0.8rem; max-height: 300px; overflow: auto; }

/* Select — custom-select.css ile global; şube seçici genişlik */
.branch-selector-block .custom-select { max-width: 100%; }
