/* Notification system */
.site-notification-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10050;
    width: min(360px, calc(100vw - 24px));
}

.site-notification {
    position: relative;
    background: linear-gradient(145deg, #2a0f0f, #1a0c0c);
    border: 1px solid rgba(255, 82, 82, 0.35);
    color: #ffeaea;
    border-radius: 14px;
    padding: 14px 40px 14px 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.site-notification.hide {
    opacity: 0;
    transform: translateY(16px);
}

.site-notification:hover {
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.52);
    border-color: rgba(255, 110, 110, 0.55);
}

.site-notification .notification-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #ff8b8b;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.site-notification .notification-message {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #fff5f5;
    word-break: break-word;
}

.site-notification .notification-close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.site-notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
    .site-notification-container {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .site-notification {
        padding: 12px 36px 12px 12px;
    }
}
/* Siyah Şık Tema */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Navbar */
.navbar-dark {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand, .nav-link {
    color: var(--text-primary) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Container */
.container {
    padding: 8px 5px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .container {
        max-width: 600px;
        padding: 10px 20px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 800px;
        padding: 15px 30px;
        margin: 0 auto;
    }
}

/* Banner Section */
.banner-section {
    margin: 10px 0;
}

.banner-group {
    margin-bottom: 10px;
}

@media (min-width: 769px) {
    .banner-section {
        margin: 6px 0;
    }
    
    .banner-group {
        margin-bottom: 6px;
    }
}

@media (min-width: 1200px) {
    .banner-section {
        margin: 8px 0;
    }
    
    .banner-group {
        margin-bottom: 8px;
    }
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 769px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 100%;
    }
}

.banner-item {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

@media (min-width: 769px) {
    .banner-item {
        max-width: 100%;
        width: 100%;
    }
    
    .banner-item img {
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media (min-width: 1200px) {
    .banner-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

.banner-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.25);
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Bonus Cards Section */
.bonus-section {
    margin: 10px 0;
    padding: 0;
}

@media (min-width: 769px) {
    .bonus-section {
        margin: 6px 0;
    }
}

@media (min-width: 1200px) {
    .bonus-section {
        margin: 8px 0;
    }
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

@media (min-width: 769px) {
    .bonus-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        max-width: 100%;
        justify-items: center;
    }
}

@media (min-width: 1200px) {
    .bonus-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 100%;
        justify-items: center;
    }
}

.bonus-card {
    width: 100%;
    height: auto;
    aspect-ratio: 150 / 195;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    background: var(--bg-secondary);
    min-height: 0;
}

@media (min-width: 769px) {
    .bonus-card {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 150 / 195;
        height: auto;
    }
    
    .bonus-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media (min-width: 1200px) {
    .bonus-card {
        width: 100%;
        max-width: 100%;
    }
}

.bonus-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
}

/* 4 veya daha az bonus kart varsa daha büyük göster */
.bonus-section--few-cards .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.bonus-section--few-cards .bonus-card {
    max-width: 320px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .bonus-section--few-cards .bonus-grid {
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .bonus-section--few-cards .bonus-grid {
        gap: 20px;
        max-width: 1000px;
    }
    
    .bonus-section--few-cards .bonus-card {
        max-width: 360px;
    }
}

.bonus-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Mobil için bonus kartları - 5 sütun (tüm mobil cihazlarda) */
@media (max-width: 768px) {
    .container {
        padding: 10px 8px;
    }
    
    .banner-group {
        margin-bottom: 15px;
    }
    
    .bonus-section {
        margin: 15px 0;
    }
    
    .banner-grid {
        gap: 8px;
    }
    
    .bonus-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 0;
        max-width: 100%;
    }
    
    .bonus-section--few-cards .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 85%;
    }
    
    .bonus-section--few-cards .bonus-card {
        max-width: 140px;
    }
    
    .bonus-card {
        width: 100%;
        height: auto;
        aspect-ratio: 150 / 195;
        min-height: 0;
    }
    
    .bonus-card img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Çok küçük ekranlar için de 5 sütun (mobilde her zaman 5 sütun) */
@media (max-width: 480px) {
    .bonus-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .bonus-section--few-cards .bonus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .container {
        padding: 8px 5px;
    }
}

/* Admin Panel Styles */
.admin-container {
    background-color: var(--bg-secondary);
    min-height: calc(100vh - 56px);
    padding: 30px 0;
}

.admin-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-card:hover {
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.admin-card h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Quick Cards */
.quick-card {
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.3);
}

.quick-card-link {
    text-decoration: none;
    color: inherit;
}

.quick-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.quick-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.quick-card h2 {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--text-primary);
}

.quick-card .text-accent {
    color: var(--accent);
    font-weight: 600;
}

.gap-2 {
    gap: 0.5rem;
}

.form-control, .form-select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.table-dark {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.table-dark th {
    border-color: var(--border-color);
    color: var(--accent);
}

.table-dark td {
    border-color: var(--border-color);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 30px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: var(--bg-secondary);
    transition: border-color 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent);
}

.upload-area.dragover {
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
}

/* Sortable */
.sortable-item {
    cursor: move;
    margin-bottom: 10px;
}

.sortable-item:hover {
    opacity: 0.8;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item-info {
    padding: 10px;
    background: var(--bg-tertiary);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive - Tablet ve küçük ekranlar */
@media (max-width: 992px) and (min-width: 769px) {
    .bonus-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .container {
        padding: 8px 5px;
    }
}

/* Responsive - Admin paneli mobil */
@media (max-width: 768px) {
    .admin-card {
        padding: 15px;
    }
    
    .quick-card-icon {
        font-size: 2rem;
    }
    
    .quick-card h2 {
        font-size: 1.5rem;
    }
}

/* Loading Spinner */
.spinner-border {
    color: var(--accent);
}

/* Alert */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background-color: rgba(0, 212, 255, 0.2);
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

/* 3. Grup Şablon Stilleri */
.template-section {
    margin: 20px 0;
}

.template-container {
    position: relative;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

.template-background {
    width: 100%;
    height: auto;
    display: block;
}

.template-bonus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.template-bonus-card {
    width: 150px;
    height: 195px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 5px;
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

.template-bonus-card:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.template-bonus-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.8);
}

@media (max-width: 768px) {
    .template-bonus-overlay {
        gap: 5px;
        padding: 10px;
    }
    
    .template-bonus-card {
        width: 120px !important;
        height: 156px !important;
    }
    
    .bonus-section--few-cards.template-section .template-bonus-card {
        width: 160px !important;
        height: 208px !important;
    }
}

/* 4 veya daha az bonus kart – şablon modunda daha büyük kartlar */
.bonus-section--few-cards.template-section .template-bonus-card {
    width: 200px;
    height: 260px;
}

.bonus-section--few-cards.template-section .template-bonus-overlay {
    gap: 16px;
    padding: 24px;
}

/* Anasayfa SSS (yönetim panelinden) */
.home-sss {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, #111 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #f2f2f2;
}

.home-sss-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
    color: #fff;
}

.home-sss-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-sss-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.85);
    overflow: hidden;
}

.home-sss-summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffe4e4;
    position: relative;
    padding-right: 40px;
}

.home-sss-summary::-webkit-details-marker {
    display: none;
}

.home-sss-summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-sss-item[open] .home-sss-summary::after {
    content: "−";
    color: #ff8b8b;
}

.home-sss-body {
    padding: 0 16px 16px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    margin-top: 0;
}

@media (max-width: 576px) {
    .home-sss-summary {
        font-size: 0.9rem;
        padding: 12px 38px 12px 12px;
    }
}

/* Admin’den gönderilen anlık üst duyuru (sitede açık ziyaretçiler) */
.site-live-broadcast-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10060;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a0a0a 0%, #3d0808 45%, #7a0e0e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-live-broadcast-bar--visible {
    transform: translateY(0);
    opacity: 1;
}

.site-live-broadcast-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    position: relative;
    padding-right: 36px;
}

.site-live-broadcast-bar__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.site-live-broadcast-bar__close:hover {
    background: rgba(0, 0, 0, 0.4);
}

.site-live-broadcast-bar__text {
    flex: 1 1 220px;
    min-width: 0;
    color: #fff5f5;
}

.site-live-broadcast-bar__title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #fff;
}

.site-live-broadcast-bar__body {
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.site-live-broadcast-bar__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: #1a0505 !important;
    background: linear-gradient(180deg, #ffe566 0%, #ffc107 100%);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.site-live-broadcast-bar__btn:hover {
    filter: brightness(1.06);
    color: #1a0505 !important;
}

@media (max-width: 576px) {
    .site-live-broadcast-bar__inner {
        padding-right: 0;
        padding-top: 28px;
    }
    .site-live-broadcast-bar__close {
        top: -4px;
        right: -4px;
    }
    .site-live-broadcast-bar__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Web Push — Sinyal CTA (site bildirim çubuğundan bağımsız) */
.push-signal-cta-root {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10040;
    max-width: min(320px, calc(100vw - 32px));
}

.push-signal-cta-panel {
    background: linear-gradient(145deg, #121a24, #0d1118);
    border: 1px solid rgba(74, 158, 255, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.push-signal-cta-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.push-signal-cta-status {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.35;
}

