:root {
    --bg-color: #0b0b0b;
    --sidebar-bg: #000000;
    --card-bg: #1a1a1a;
    --accent-green: #2ecc71;
    --accent-pink: #b01e43;
    --text-main: #ffffff;
    --text-secondary: #999;
    --border-color: #333;
    --primary-purple: #a855f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

aside {
    width: 70px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
    justify-content: space-between;
    flex-shrink: 0;
    z-index: 100;
}

.nav-icons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.nav-item {
    color: var(--text-secondary);
    font-size: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-green);
}

.nav-item svg {
    display: block;
    margin-bottom: 5px;
    width: 24px;
    height: 24px;
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    scroll-behavior: smooth;
}

.mobile-only {
    display: none;
}

.slider-container {
    position: relative;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px;
    position: relative;
}

.slide-1 {
    background: linear-gradient(90deg, #d35400, #e67e22, #f1c40f);
}

.slide-2 {
    background: linear-gradient(90deg, #2c3e50, #000000);
    border: 1px solid var(--border-color);
}

.slide-content h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.slide-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-badge {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: capitalize;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.kling-features {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.feature-title {
    font-weight: 600;
    font-size: 16px;
}

.feature-badge {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 15px;
}

.feature-btn {
    background: var(--accent-green);
    color: black;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feature-btn span {
    font-size: 14px;
}

/* Ana Konteyner */
.actions-wrapper {
    position: relative;
    width: 100%;
    padding: 10px; 
    margin-bottom: 25px;
}

/* Izgara ve Limitler (Desktop 10, Mobil 6) */
.actions-grid {
    display: grid;
    gap: 12px;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.actions-grid a{
    text-decoration: none;
    color: white;
    font-weight: 600;
}

/* Masaüstü: 5 sütun x 2 satır = 10 öğe */
@media (min-width: 992px) {
    .actions-grid {
        grid-template-columns: repeat(5, 1fr);
        max-height: 125px; 
    }
}

/* Mobil: 2 sütun x 3 satır = 6 öğe */
@media (max-width: 991px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 185px; 
    }
}

/* Açık Hal */
.actions-grid.expanded {
    max-height: 2500px !important;
}

/* KRAL: Siyah Geçiş ve Butonun Gömüldüğü Alan */
.actions-footer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px; /* Buğunun yüksekliği */
    /* Saydamdan tam siyaha yumuşak geçiş */
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 100%);
    display: flex;
    align-items: flex-end; /* Butonu en alta yasla */
    justify-content: center;
    padding-bottom: 10px; /* En alttan az bir boşluk */
    z-index: 10;
    pointer-events: none; /* Üstteki boşluğa tıklanabilsin */
    transition: all 0.4s ease;
}

/* Butonun kendisi tıklanabilir olmalı */
.view-all-minimal {
    pointer-events: auto;
    background: transparent;
    border: none;
    color: #a855f7;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5); /* Siyah üstünde daha net dursun */
}

/* Liste açılınca geçişi ve butonu yukarı kaydır veya stilini değiştir */
.actions-wrapper.is-open .actions-footer-overlay {
    height: 50px; /* Daraltsın */
    background: transparent; /* Arka planı temizle */
    position: relative; /* Artık absolute olmasın, listenin sonuna gelsin */
}

.view-all-minimal .material-icons-outlined {
    transition: transform 0.4s ease;
}

.actions-wrapper.is-open .view-all-minimal .material-icons-outlined {
    transform: rotate(180deg);
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    gap: 10px;
    text-align: center;
}

.ad-timer-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #a855f7;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid #111;
    z-index: 99999999 !important;
}

.ad-popup-content {
    background: #111;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

.swal2-container {
    z-index: 99999 !important; 
}

.swal2-backdrop-show {
    backdrop-filter: blur(8px) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.custom-swal-popup {
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 24px !important;
    color: #fff !important;
}

.sticky-wrapper {
    position: sticky;
    top: -30px;
    background: var(--bg-color);
    z-index: 900;
    margin: 0 -30px 20px -30px;
    padding: 10px 30px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tabs {
    display: flex;
    gap: 15px;
}

.tab {
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 18px;
}

.tab.active {
    color: white;
    background: #333;
}

.search-box {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 8px;
    width: 250px;
    color: white;
    outline: none;
}

.masonry-feed {
    column-count: 5;
    column-gap: 15px;
    margin-bottom: 100px;
}

.feed-item {
    background: var(--card-bg);
    margin-bottom: 15px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.lang-dropdown {
    position: relative;
}

.lang-trigger {
    background: #222;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0 12px;
    height: 38px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.lang-menu {
    position: absolute;
    bottom: 50px;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 70px;
    display: none;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    animation: slideUp 0.2s ease-out;
}

.lang-dropdown:hover .lang-menu {
    display: flex;
}

.lang-option {
    padding: 12px;
    color: #aaa;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transition: 0.2s;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* KRAL: PROMPT MODAL OVERLAY (KADEME 1) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* PAYLAŞIM ALANI TASARIMI */
.share-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center;
}

.share-section h5 {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #333;
}

/* Platform Renkleri */
.share-btn.fb:hover { background: #1877F2; border-color: #1877F2; }
.share-btn.x-twitter:hover { background: #000000; border-color: #555; }
.share-btn.wa:hover { background: #25D366; border-color: #25D366; }
.share-btn.pin:hover { background: #E60023; border-color: #E60023; }
.share-btn.copy-link:hover { background: #a855f7; border-color: #a855f7; }

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* KRAL: REKLAM POP-UP OVERLAY (KADEME 2 - MODAL ÜSTÜNDE) */
#adPopupOverlay {
    z-index: 999999999 !important; 
}

.modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    display: flex;
    height: 100%;
    max-height: 80vh;
}

.modal-media {
    flex: 2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-media img, .modal-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-wrapper video{
    width: 100%;
    height: auto;
}

.modal-sidebar {
    flex: 1;
    padding: 25px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.modal-sidebar h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.prompt-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    position: relative;
    margin-bottom: 10px;
}

.prompt-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.view-prompt-btn {
    background: var(--accent-green);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* KRAL: AD POPUP ÖZEL (KADEME 3) */
.ad-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    z-index: 5000; 
    border: 1px solid var(--accent-pink);
    text-align: center;
}

/* FOOTER TASARIMI */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 60px 0 100px 0; /* Nav altta olduğu için boşluk bıraktık */
    margin-top: 50px;
    color: #888;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h3 { color: #fff; margin-bottom: 15px; }
.footer-links h4 { color: #fff; margin-bottom: 15px; font-size: 14px; text-transform: uppercase; }

.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #666; text-decoration: none; transition: 0.3s; }
.footer-links ul li a:hover { color: #007bff; }

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}


.ad-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
    z-index: 10;
}

.promo-box {
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.promo-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(168, 85, 247, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    text-transform: uppercase;
}

.promo-info {
    background: linear-gradient(to top, rgba(15,15,15,1), rgba(15,15,15,0.8)) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#adPopupOverlay {
    z-index: 4000 !important; 
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.9);
}
.swal2-container {
    z-index: 99999 !important; 
}
.swal2-backdrop-show {
    backdrop-filter: blur(15px) !important;
    background: rgba(0, 0, 0, 0.7) !important;
}
.custom-swal-popup {
    background: #111111 !important;
    border: 1px solid #333333 !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    padding: 20px !important;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.2) !important;
}
.swal2-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}
.swal2-success-ring {
    border-color: rgba(46, 204, 113, 0.3) !important;
}
.swal2-success-line-tip, .swal2-success-line-long {
    background-color: #2ecc71 !important;
}

#modalDetailLink[href="#"] {
    pointer-events: none;
    opacity: 0.5;
}

.feed-media {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.feed-media:not([src]) {
    min-height: 200px; /* layout shift önler */
}


@media (max-width: 768px) {
    /* 1. Ana Konteyneri Daralt ve Tepeden Boşluğu Azalt */
    .detail-container {
        margin-top: 80px !important; /* Sticky header varsa çakışmasın */
        padding: 0 15px !important;
    }

    /* 2. Grid Yapısını Tek Kolona Düşür (Resim Otomatik Üste Çıkar) */
    .detail-container > div {
        grid-template-columns: 1fr !important; /* Yan yana olan yapıyı alt alta yap */
        gap: 25px !important;
        display: flex !important;
        flex-direction: column !important; /* Kesin sıralama için flex-column */
    }

    /* 3. Medya Alanını (Resim/Video) Tam Genişlik Yap */
    .detail-container div[style*="background: #111"] {
        border-radius: 16px !important; /* Mobilde daha yumuşak köşeler */
        width: 100% !important;
        order: 1; /* En üstte kalmasını garanti et */
    }

    /* 4. İçerik Alanı (Yazılar ve Butonlar) */
    .sidebar-info {
        width: 100% !important;
        order: 2; /* Resmin altına gelsin */
        padding-bottom: 40px;
    }

    /* Başlık Boyutunu Mobilde Küçült */
    .sidebar-info h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    /* Açıklama Yazısı */
    .sidebar-info p {
        font-size: 15px !important;
        margin-bottom: 20px !important;
    }

    /* 5. Prompt Kutusu ve Butonlar */
    .prompt-container {
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .prompt-text {
        font-size: 14px !important;
        word-break: break-all;
    }

    .view-prompt-btn {
        width: 100% !important; /* Mobilde butonu tam genişlik yap */
        padding: 15px !important;
        font-size: 16px !important;
    }

    /* 6. Paylaşım Butonları */
    .share-section {
        margin-top: 20px !important;
    }

    .share-buttons {
        gap: 8px !important; 
        justify-content: center !important; 
    }

    .share-btn {
        width: 40px !important; /* Mobilde parmakla basım için ideal boyut */
        height: 40px !important;
    }


    main { padding: 0; }
    .mobile-only { display: block; }
    .sticky-wrapper {
        top: 0;
        margin: 0;
        padding: 10px 15px;
    }
    .slider-container { height: 160px; border-radius: 0 0 15px 15px; }
    .kling-features { grid-template-columns: 1fr; padding: 15px; }
    .masonry-feed { column-count: 2; padding: 0 10px; }
    .modal-body { flex-direction: column; }
    .modal-media { max-height: 50vh; }
    .modal-sidebar { border-left: none; border-top: 1px solid var(--border-color); }
    .sticky-wrapper {
        padding: 10px 0 !important;
        overflow: hidden;
    }

    .filter-bar {
        position: relative;
        display: block;
        width: 100%;
        padding-left: 10px;
    }

    /* Sağ taraftaki puslu (gradient) efekt */
    .filter-bar::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--bg-color));
        pointer-events: none;
        z-index: 2;
    }

    .tabs {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 10px;
        padding: 0 40px 0 15px; /* Son elemanın yarım kalması için sağ boşluk */
    }

    .tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: 15px !important;
        background: rgba(255, 255, 255, 0.05);
        padding: 8px 15px !important;
    }
}