/* ==================== Layout Foundation (FOUC Prevention & Vertical Centering) ==================== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tüm sayfalarda <main> flex kolon olsun (dikey ortalama için zemin) */
main {
    display: flex;
    flex-direction: column;
}

/* .main-content: Ortak genişlik ve ortalama (yatay) */
.main-content {
    max-width: 900px !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Kısa sayfalarda Tailwind yüklenmeden hizalama (FOUC önleme) — dikey ortalama kaldırıldı */
.main-center {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

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

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

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