﻿/* =========================================
   🟢 İYİLİK SAHNESİ - GÖNÜL DOSTLARI STUDIO (v13)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background: #000000;
    display: flex;
}

/* Mobil menü butonları masaüstünde görünmesin diye gizliyoruz */
.mobile-menu-btn, .mobile-close-sidebar {
    display: none;
}

.sidebar {
    width: 340px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    padding: 30px 20px 40px 20px;
    z-index: 100;
    box-shadow: 5px 0 25px rgba(0,0,0,0.05);
    overflow-y: auto; /* Dikey kaydırma (aşağı-yukarı) serbest */
    overflow-x: hidden; /* YATAY KAYDIRMAYI SONSUZA DEK YASAKLADIK */
    box-sizing: border-box;
}

.mt-auto {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 10px; /* Butonun altından da biraz nefes aldırıyoruz */
}/* Gönül Dostları Dik Logo İçin Ayar */
.brand-logo {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 30px auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(46,125,50,0.1));
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    color: #495057;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

    .nav-link i {
        font-size: 1.3rem;
        width: 25px;
        text-align: center;
    }

    .nav-link:hover {
        background: #f6fbf7;
        color: #2e7d32;
        transform: translateX(5px);
    }

    .nav-link.active {
        background: #e8f5e9;
        color: #2e7d32;
        border-left: 4px solid #2e7d32;
    }

.nav-divider {
    border-top: 1px solid #e9ecef;
    margin: 15px 0;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 20px;
    margin-bottom: 10px;
}

.mt-auto {
    margin-top: auto;
    padding-top: 20px;
}

.btn-green {
    display: block;
    width: 100%;
    box-sizing: border-box; /* İŞTE HAYAT KURTARAN KOD BURADA */
    padding: 14px;
    border-radius: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    background: #2e7d32;
    color: white;
    box-shadow: 0 5px 15px rgba(46,125,50,0.2);
    transition: all 0.3s;
}

    .btn-green:hover {
        background: #1b5e20;
        transform: translateY(-2px);
        color: white;
    }

/* 🚨 MERKEZİ VİDEO (DOĞA YEŞİLİ GLOW) 🚨 */
.feed-wrapper {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #0a1a0f 0%, #000000 100%);
}

.player-container {
    display: flex;
    height: 90vh;
    min-height: 600px;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.2, 1);
    width: 480px;
}

    .player-container.show-comments {
        width: 960px;
    }

    .player-container.show-desc {
        width: 960px;
    }

/* SOLA AÇILAN AÇIKLAMA */
.desc-section {
    width: 0;
    opacity: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.player-container.show-desc .desc-section {
    width: 480px;
    opacity: 1;
}

.d-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    align-items: center;
}

    .d-header h4 {
        margin: 0;
        font-weight: 900;
        color: #2b3a2f;
        text-transform: uppercase;
    }

.d-body {
    padding: 20px;
    overflow-y: auto;
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 600;
}

    .d-body .tags {
        margin-top: 20px;
        color: #2e7d32;
        font-weight: 800;
    }

/* VİDEO BÖLÜMÜ */
.video-section {
    width: 480px;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    background: #051a0a;
    overflow: hidden;
}

.reels-feed {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    cursor: pointer;
}

    .reels-feed::-webkit-scrollbar {
        display: none;
    }

.reel-item {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* YUKARI/AŞAĞI YÖN OKLARI */
.feed-navigation {
    position: absolute;
    right: 15px;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    pointer-events: auto;
}

.nav-arrow {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

    .nav-arrow:hover {
        background: #2e7d32;
        border-color: #2e7d32;
        transform: scale(1.1);
    }

/* PLAY İKONU VE TEPEDEKİ SES BUTONU */
.global-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s cubic-bezier(0.25, 1, 0.2, 1);
    z-index: 5;
}

    .global-play-icon.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

.top-mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

    .top-mute-btn:hover {
        background: #2e7d32;
        border-color: #2e7d32;
        transform: scale(1.1);
    }

/* LİKE ANİMASYONU */
.like-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8rem;
    color: #ff4d4d;
    opacity: 0;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

    .like-animation.animate {
        animation: popHeart 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

@keyframes popHeart {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* VİDEO İÇİ BUTONLAR */
.reel-actions {
    position: absolute;
    right: 15px;
    bottom: 130px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    pointer-events: auto;
}

.action-btn {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

    .action-btn:hover {
        background: #2e7d32;
        border-color: #2e7d32;
        transform: scale(1.1);
    }

    .action-btn.liked i {
        color: #ff4d4d;
    }

.a-text {
    font-size: 0.7rem;
    font-weight: 800;
    margin-top: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.reel-info {
    position: absolute;
    left: 15px;
    bottom: 20px;
    color: white;
    width: calc(100% - 80px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 10;
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

    .reel-info:hover {
        background: rgba(0,0,0,0.3);
        backdrop-filter: blur(5px);
    }

.r-user {
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.r-desc {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.8rem;
    color: #c8e6c9;
    font-weight: 800;
    margin-top: 5px;
}

/* SAĞA AÇILAN YORUM PANELİ */
.comments-section {
    width: 0;
    opacity: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.player-container.show-comments .comments-section {
    width: 480px;
    opacity: 1;
}

.c-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    align-items: center;
}

    .c-header h4 {
        margin: 0;
        font-weight: 900;
        color: #2b3a2f;
        text-transform: uppercase;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #8d6e63;
    cursor: pointer;
}

    .close-btn:hover {
        color: #2e7d32;
    }

.c-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .c-body::-webkit-scrollbar {
        width: 5px;
    }

    .c-body::-webkit-scrollbar-thumb {
        background: #e9ecef;
        border-radius: 10px;
    }

/* 🚨 YORUMLAR 🚨 */
.comment-box {
    display: flex;
    gap: 15px;
}

.c-avatar {
    width: 40px;
    height: 40px;
    background: #8d6e63;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    flex-shrink: 0;
}

.c-text-area {
    flex-grow: 1;
}

.c-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.c-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #2b3a2f;
}

.c-message {
    font-size: 0.9rem;
    color: #5d4037;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.c-action-row {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #a1887f;
}

.c-action-btn {
    cursor: pointer;
    transition: 0.2s;
}

    .c-action-btn:hover {
        color: #2e7d32;
    }

.c-reply {
    margin-top: 15px;
    margin-left: 55px;
    position: relative;
}

    .c-reply::before {
        content: '';
        position: absolute;
        left: -35px;
        top: -15px;
        width: 20px;
        height: 35px;
        border-bottom: 2px solid #eee;
        border-left: 2px solid #eee;
        border-bottom-left-radius: 10px;
    }

.badge-role {
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.b-admin {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff;
    box-shadow: 0 4px 10px rgba(46,125,50,0.2);
}

.a-name {
    color: #2e7d32;
}

.c-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: #f8f9fa;
}

.c-input {
    flex-grow: 1;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 10px 20px;
    outline: none;
    font-weight: 600;
}

    .c-input:focus {
        border-color: #2e7d32;
        box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
    }

.c-send {
    background: #2e7d32;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .c-send:hover {
        transform: scale(1.1);
    }

/* LAPTOP EKRANLARI İÇİN VİDEO BOYU SİHRİ */
@media screen and (max-height: 850px) and (min-width: 992px) {
    .player-container {
        height: 95vh !important;
        min-height: 500px !important;
        border-radius: 15px !important;
    }

    .sidebar {
        padding: 15px 15px !important;
    }

    .brand-logo {
        max-width: 140px !important;
        margin-bottom: 20px !important;
    }

    .nav-link {
        padding: 10px 15px !important;
        font-size: 1rem !important;
    }

    .mt-auto {
        padding-top: 10px !important;
    }
}

/* PAYLAŞIM MODALI VE TOAST (Aynı şekilde duruyor) */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

    .share-modal-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

.share-modal-content {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.2, 1);
}

.share-modal-overlay.active .share-modal-content {
    transform: translateY(0);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

    .share-header h4 {
        margin: 0;
        color: white;
        font-weight: 900;
    }

.share-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.2s;
}

    .share-close:hover {
        color: #2e7d32;
    }

.share-link-group {
    display: flex;
    background: #000;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.share-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #adb5bd;
    padding: 12px 15px;
    outline: none;
    font-size: 0.9rem;
}

.share-copy-btn {
    background: #2e7d32;
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

    .share-copy-btn:hover {
        background: #1b5e20;
    }

.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

    .social-btn.whatsapp {
        background: #25D366;
    }

    .social-btn.instagram {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    }

    .social-btn.twitter {
        background: #000;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .social-btn.telegram {
        background: #0088cc;
    }

    .social-btn:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        color: white;
    }

.modern-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(46,125,50,0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid #2e7d32;
}

    .modern-toast.show {
        bottom: 40px;
        opacity: 1;
    }

    .modern-toast i {
        color: #2e7d32;
        font-size: 1.2rem;
    }

    .modern-toast span {
        font-weight: 800;
        color: #1a1d20;
        font-size: 0.95rem;
    }


/* =========================================
   🔥 SADECE MOBİL İÇİN KUSURSUZ GÖRÜNÜM 🔥 
========================================= */
@media screen and (max-width: 768px) {

    /* 1. KLAVYE BUG'INI ÇÖZEN SABİTLEME (Siyah boşluğu engeller) */
    html, body {
        position: fixed !important;
        width: 100vw !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    .feed-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        background: #000 !important;
        padding: 0 !important;
    }

    /* 2. Hamburger ve Kapatma Butonları */
    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 90;
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        backdrop-filter: blur(5px);
        align-items: center;
        justify-content: center;
    }

    .mobile-close-sidebar {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        z-index: 101;
    }

    /* 3. Sol Menü */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100dvh;
        transition: left 0.3s ease;
        box-shadow: none;
        z-index: 1000;
    }

        .sidebar.active {
            left: 0;
            box-shadow: 100px 0 100px rgba(0,0,0,0.7);
        }

    /* 4. Ana Video Container */
    .player-container {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: unset;
        border-radius: 0;
        box-shadow: none;
        display: block;
        position: absolute !important;
        overflow: hidden;
    }

    .video-section {
        width: 100vw !important;
        height: 100dvh !important;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
    }

    /* 5. İstenmeyen Okları Gizle ve Play İkonunu Küçült */
    .feed-navigation {
        display: none !important;
    }

    .global-play-icon {
        font-size: 4rem !important;
    }

    /* 6. Sağ Butonlar ve Alt Bilgi */
    .reel-actions {
        bottom: 90px !important;
        right: 10px !important;
        gap: 10px !important;
    }

    .action-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .a-text {
        font-size: 0.65rem !important;
    }

    .reel-info {
        bottom: 20px !important;
        width: calc(100% - 60px) !important;
        left: 10px !important;
    }

    /* ========================================================
       7. AÇIKLAMA VE YORUMLAR (%65 KAPLAMA & YANDAN GELME)
       ======================================================== */
    .desc-section, .comments-section {
        position: fixed !important; /* Fixed ile ekrana çiviledik */
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 65dvh !important; /* İstediğin gibi %65'e çıktı */
        max-height: 65dvh !important;
        border-radius: 24px 24px 0 0 !important;
        z-index: 100 !important;
        opacity: 1 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.2, 1) !important;
    }

    /* Masaüstünden kalan genişlik ve saydamlık ayarlarını ezer */
    .player-container.show-desc .desc-section,
    .player-container.show-comments .comments-section {
        width: 100vw !important;
        opacity: 1 !important;
    }

    /* AÇIKLAMA KISMI: SOLDAN SAĞA GİRİŞ */
    .desc-section {
        transform: translateX(-100%); /* Başlangıçta solda saklı */
    }

    .player-container.show-desc .desc-section {
        transform: translateX(0); /* Ekrana girer */
    }

    /* YORUMLAR KISMI: SAĞDAN SOLA GİRİŞ */
    .comments-section {
        transform: translateX(100%); /* Başlangıçta sağda saklı */
    }

    .player-container.show-comments .comments-section {
        transform: translateX(0); /* Ekrana girer */
    }

    /* ========================================================
       8. YAZILARI 1.5 KAT BÜYÜTME (Okunabilir Kompakt Boyut)
       ======================================================== */
    .d-body, .c-body {
        font-size: 0.7rem !important;
        padding: 12px !important;
    }

    .c-message {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .c-name {
        font-size: 0.7rem !important;
    }

    .d-header h4, .c-header h4 {
        font-size: 0.85rem !important;
    }

    .d-header, .c-header {
        padding: 12px !important;
    }

    .c-action-row {
        font-size: 0.6rem !important;
        gap: 10px !important;
    }

    /* Avatarlar yazılar büyüdüğü için bir tık büyütüldü */
    .c-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.7rem !important;
    }

    .c-reply {
        margin-left: 40px !important;
        margin-top: 10px !important;
    }

        .c-reply::before {
            left: -25px !important;
            top: -10px !important;
            height: 30px !important;
        }

    .badge-role {
        font-size: 0.5rem !important;
        padding: 3px 6px !important;
    }

    /* Yorum yazma input alanı uyumlu hale getirildi */
    .c-footer {
        padding: 12px !important;
    }

    .c-input {
        padding: 10px 15px !important;
        font-size: 0.7rem !important;
    }

    .c-send {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
}