/* Genel Yumuşak Geçişler */
body, a, button, input, textarea, select, .card-panel, .tool-card, .platform-btn {
    transition: all 0.3s ease;
}

/* Aktif Sidebar Menü Öğesi */
.sidebar a.active {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.sidebar a.active i {
    color: #3b82f6 !important;
}

/* Aktif Mobil Alt Menü Öğesi */
.mobile-nav-item.active {
    color: #3b82f6 !important;
}
.mobile-nav-item.active i {
    color: #3b82f6 !important;
}

.sidebar a, .sidebar span, .sidebar li {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.95rem !important;
}

.main-content {
    max-width: 900px !important;
    margin: 0 auto;
    width: 100%;
}

/* Kartların yeni stili */
.tool-card {
    background: linear-gradient(145deg, #161619, #111113);
    padding: 25px !important;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.tool-card:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(59, 130, 246, 0.3); /* Üstüne gelince mavi parlasın */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Kart içindeki ikon ve metinler */
.tool-card i {
    font-size: 32px !important; /* İkonu büyüttük */
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 12px;
}

.tool-card p {
    color: #71717a;
    line-height: 1.6;
    font-size: 15px;
}

/* Izgara düzenini genişlet */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Platform Butonları için 4'lü Grid Düzen */
.platform-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Mobilde sıkışmaması için 2x2 ızgaraya dönüştür */
@media (max-width: 768px) {
    .platform-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Butonların standart durumu (Ortalanmış ve Şeffaf) */
.platform-btn {
    background: transparent !important; 
    border: 1px solid #333 !important;
    color: #888 !important;
    padding: 10px 0 !important; /* Sağ ve sol boşlukları eşitleyip simetri sağlar */
    border-radius: 8px !important;
    text-align: center !important; 
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    width: 100% !important; 
    gap: 0 !important; /* JS'nin araya boşluk atmasını engeller */
}

/* Butona Tıklandığında (Aktif Durum) - İçi Mavi Dolu */
.platform-btn.active {
    background-color: #3b82f6 !important; /* Sitenin ana mavi tema rengi */
    border: 1px solid #3b82f6 !important; 
    color: #ffffff !important; /* Yazı rengi beyaz kalsın ki okunsun */
}

/* JS arka planda ikonları geri getirmeye çalışırsa onları acımasızca yok et */
.platform-btn i {
    display: none !important;
}

/* Mobil Alt Menü Varsayılan Olarak Gizli (Masaüstü için) */
.mobile-bottom-nav {
    display: none;
}

/* Sadece Mobil Görünümde Devreye Girer */
@media (max-width: 768px) {
    /* 1. Masaüstü sol menüyü mobilde tamamen sakla */
    .sidebar {
        display: none !important;
    }

    /* 2. İçeriğin alt menü altında kalmaması için padding */
    body {
        padding-bottom: 80px !important;
    }

    /* 3. Alt Menü Tasarımı (Ferah ve Ortalanmış) */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #0f0f0f;
        border-top: 1px solid #272727;
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding: 20px 0 !important;
        padding-bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }

    .mobile-nav-item {
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #888888;
        font-size: 0.70rem;
        font-weight: 500;
        gap: 5px;
        transition: 0.2s ease-in-out;
    }

    /* Alt menüdeki metinleri tamamen gizle */
    .mobile-nav-item span {
        display: none !important;
    }

    /* Yazılar gidince boş kalmaması için ikonları büyüt ve ortala */
    .mobile-nav-item i {
        font-size: 1.6rem !important;
        margin-top: 0 !important;
    }

    /* Aktif Menü Öğesi Rengi (Mavi) */
    .mobile-nav-item.active {
        color: #3b82f6;
    }
}

/* Medyayı Bul Butonu Kilitli (Disabled) Durumu */
button:disabled,
#extractBtn:disabled {
    background-color: #333333 !important;
    color: #777777 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border: none !important;
}

/* ==================== SPA Router Geçiş Animasyonu ==================== */
main {
    transition: opacity 0.2s ease;
}

/* ==================== Ortak Kart Stilleri ==================== */
.card-panel {
    background: #0a0a0a;
    border: 1px solid rgba(30, 58, 138, 0.3);
}
.card-panel:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

/* ==================== Spinner (Yükleniyor) ==================== */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== Etiket Rozeti ==================== */
.tag-badge {
    background: rgba(30, 58, 138, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    color: rgb(96 165 250);
    display: inline-block;
    margin: 4px;
    transition: all 0.2s ease;
}
.tag-badge:hover {
    background: rgba(30, 58, 138, 0.5);
    border-color: rgba(59, 130, 246, 0.6);
}

/* ==================== Sihirbaz Butonları ==================== */
.primary-btn {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.primary-btn:hover {
    background: #2563eb;
}
.secondary-btn {
    background: #374151;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}
.secondary-btn:hover {
    background: #4b5563;
}

/* ==================== Anket / Yorum Panelleri (index.html) ==================== */
.poll-comments-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}
.poll-comments-panel.is-open {
    max-height: 720px;
    opacity: 1;
    overflow: visible;
}
.poll-comments-list,
.comment-interaction-bar,
.comment-more-wrap,
.poll-interaction-bar,
.poll-more-wrap {
    overflow: visible;
}
.poll-more-wrap.is-menu-open {
    z-index: 9998;
}
.poll-action-btn {
    color: rgb(113 113 122);
    transition: color 0.15s ease, background-color 0.15s ease;
}
.poll-action-btn:not(.is-voted-like):not(.is-voted-dislike):hover {
    background-color: rgba(39, 39, 42, 0.6);
}
.poll-like-btn:not(.is-voted-like):hover {
    color: rgb(96 165 250);
}
.poll-dislike-btn:not(.is-voted-dislike):hover {
    color: rgb(248 113 113);
}
.poll-like-btn.is-voted-like,
.poll-like-btn.is-voted-like:hover {
    color: rgb(96 165 250);
    background-color: transparent;
}
.poll-like-btn.is-voted-like .poll-like-count {
    color: rgb(250 250 250);
}
.poll-like-btn.is-voted-like svg {
    fill: currentColor;
}
.poll-dislike-btn.is-voted-dislike,
.poll-dislike-btn.is-voted-dislike:hover {
    color: rgb(248 113 113);
    background-color: transparent;
}
.poll-dislike-btn.is-voted-dislike .poll-dislike-count {
    color: rgb(250 250 250);
}
.poll-dropdown {
    background: #0a0a0a;
    border: 1px solid rgba(30, 58, 138, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.comment-more-wrap.is-menu-open {
    z-index: 9998;
}
.comment-action-btn {
    color: rgb(113 113 122);
    transition: color 0.15s ease, background-color 0.15s ease;
}
.comment-action-btn:not(.is-voted-like):not(.is-voted-dislike):hover {
    background-color: rgba(39, 39, 42, 0.6);
}
.comment-like-btn:not(.is-voted-like):hover {
    color: rgb(96 165 250);
}
.comment-dislike-btn:not(.is-voted-dislike):hover {
    color: rgb(248 113 113);
}
.comment-like-btn.is-voted-like,
.comment-like-btn.is-voted-like:hover {
    color: rgb(96 165 250);
    background-color: transparent;
}
.comment-like-btn.is-voted-like .comment-like-count {
    color: rgb(250 250 250);
}
.comment-like-btn.is-voted-like svg {
    fill: currentColor;
}
.comment-dislike-btn.is-voted-dislike,
.comment-dislike-btn.is-voted-dislike:hover {
    color: rgb(248 113 113);
    background-color: transparent;
}
.comment-dislike-btn.is-voted-dislike .comment-dislike-count {
    color: rgb(250 250 250);
}
.comment-dropdown {
    background: #0a0a0a;
    border: 1px solid rgba(30, 58, 138, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

/* ==================== Seçenek Butonları ==================== */
.option-btn {
    background: #0a0a0a;
    border: 1px solid rgba(30, 58, 138, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.option-btn:hover:not(.is-submitting) {
    background: rgba(30, 58, 138, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
}
.option-btn.is-selected {
    background: rgba(30, 58, 138, 0.4);
    border-color: rgb(59, 130, 246);
}
.option-btn.is-submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* ==================== Header Dropdown & Bildirimler ==================== */
.header-dropdown {
    background: #000000 !important;
    background-color: #000000 !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 12px 40px #000000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.header-profile-wrap.is-menu-open {
    z-index: 10000;
}
.notification-dropdown {
    background: #000000 !important;
    background-color: #000000 !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 12px 40px #000000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.notification-wrap.is-menu-open {
    z-index: 10000;
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0a0a0a;
}
