/* 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;
}

/* ——— Dönüşüm modülleri (sticky CTA, güven şeridi, grup başlığı, SSS, öne çıkan) ——— */
body.has-sticky-cta {
    padding-bottom: 4.85rem;
}

.group-micro-header {
    margin: 8px 0 6px;
    text-align: center;
}

.group-micro-header__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.group-micro-header__sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.35;
}

.trust-strip {
    margin: 10px 0;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.trust-strip__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 769px) {
    .trust-strip__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
    }
}

.trust-strip__item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.trust-strip__icon {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 2px;
}

.trust-strip__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trust-strip__title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.trust-strip__desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.bonus-card--featured,
.template-bonus-card.bonus-card--featured {
    position: relative;
}

.bonus-card__featured-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #c41e3a, #6b0000);
    color: #fff;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.faq-section__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.faq-section__accordion .accordion-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 6px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-section__accordion .accordion-button {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 14px;
}

.faq-section__accordion .accordion-button:not(.collapsed) {
    background: var(--bg-secondary);
    color: var(--accent);
    box-shadow: none;
}

.faq-section__accordion .accordion-button::after {
    filter: invert(0.85);
}

.faq-section__accordion .accordion-body {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
    padding: 12px 14px;
}

.sticky-cta {
    --sticky-cta-opacity: 0.94;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 0 8px 8px;
    pointer-events: none;
}

.sticky-cta__inner {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    background: rgba(26, 26, 26, var(--sticky-cta-opacity));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}

.sticky-cta__text {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 769px) {
    .sticky-cta__text {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.82rem;
    }
}

.sticky-cta__action {
    flex-shrink: 0;
}

.sticky-cta__btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--accent);
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
    white-space: nowrap;
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 769px) {
    .sticky-cta__btn {
        font-size: 0.8rem;
        max-width: 220px;
    }
}

.sticky-cta__btn--disabled {
    background: #3a3a3a;
    color: #888;
    cursor: not-allowed;
}

body.has-sticky-cta .site-notification-container {
    bottom: calc(4.85rem + 10px);
}

@media (max-width: 576px) {
    body.has-sticky-cta .site-notification-container {
        bottom: calc(4.85rem + 8px);
    }
}

