/* =========================================
   BİLİŞİMTÜRK CMS - STYLE V6 (FINAL FIX)
   ========================================= */
:root {
    --primary: #0056b3;
    --accent: #d90429;
    --dark: #111827;
    --gray: #f3f4f6;
    --border: #e5e7eb;
    --white: #ffffff;
    --font: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. ÜST BANT (TICKER) - KESİN YÜKSEKLİK */
.financial-ticker {
    background: #111827;
    height: 46px !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #374151;
    z-index: 1000;
}

.financial-ticker .tradingview-widget-container {
    width: 100% !important;
    height: 46px !important;
}

.financial-ticker iframe {
    height: 46px !important;
    /* Zorla sığdır */
    display: block;
}

/* 2. HEADER */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Styling */
/* Mobile Menu Styling (Corrected) */
/* Mobile Menu Styling (Corrected - Fixed Position) */
/* =========================================
   RESPONSIVE MENU SYSTEM (FINAL FIX)
   ========================================= */

/* 1. MOBILE: OFF-CANVAS SIDEBAR (< 992px) */
@media (max-width: 991px) {

    /* Hamburger Button - High Z-Index */
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.6rem;
        background: var(--gray);
        border: none;
        cursor: pointer;
        color: var(--dark);
        padding: 8px 12px;
        border-radius: 8px;
        margin-right: 15px;
        transition: all 0.2s;
        position: relative;
        z-index: 1002;
        /* Ensure clickable */
    }

    .mobile-menu-btn:hover {
        color: var(--primary);
        background: #e5e7eb;
    }

    /* Header Alignment */
    .header-left {
        display: flex;
        align-items: center;
        z-index: 1001;
    }

    /* Sidebar Container */
    .main-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        z-index: 100000;
        padding: 90px 15px 30px 15px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        border-right: 1px solid #f3f4f6;
    }

    /* Active State */
    .main-nav.active {
        left: 0;
    }

    /* Mobile Menu Links (Button Style) */
    .main-nav a {
        display: block;
        padding: 14px 20px;
        margin-bottom: 12px;
        font-size: 1rem;
        color: #4b5563;
        font-weight: 600;
        background: #ffffff;
        border: 1px solid #f3f4f6;
        border-radius: 12px;
        text-align: left;
        transition: all 0.2s;
    }

    .main-nav a:hover {
        background-color: #f9fafb;
        color: var(--primary);
        transform: translateX(5px);
        border-color: #e5e7eb;
    }

    /* Backdrop */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(2px);
        z-index: -1;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .main-nav.active::before {
        opacity: 1;
    }
}

/* 2. DESKTOP: HORIZONTAL MENU (> 992px) */
@media (min-width: 992px) {

    /* Hide Hamburger */
    .mobile-menu-btn {
        display: none !important;
    }

    /* Logo Size */
    .logo {
        font-size: 1.8rem;
    }

    /* Horizontal Layout (CLASSIC STYLE) */
    .main-nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-left: 40px;
        /* Space from logo */
        gap: 25px;
        /* Clean spacing */
        border: none;
        overflow: visible;
    }

    /* Classic Desktop Links (Simple Text, No Buttons) */
    .main-nav a {
        display: inline-block;
        padding: 10px 0;
        /* Top/Bottom padding only */
        margin-bottom: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #374151;
        /* Dark Grey */
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        position: relative;
        transition: color 0.2s;
    }

    /* Underline Effect on Hover */
    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s;
    }

    .main-nav a:hover {
        color: var(--primary);
        background: transparent;
        transform: none;
        box-shadow: none;
    }

    .main-nav a:hover::after {
        width: 100%;
    }

    .main-nav a.active {
        color: var(--primary);
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .main-nav a.active::after {
        width: 100%;
    }

    /* No backdrop on desktop */
    .main-nav.active::before {
        display: none;
    }
}

/* 3. SLAYDER ALANI */
.main-wrapper {
    padding-top: 20px;
    padding-bottom: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
    height: auto;
}

.hero-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    height: 100%;
}

.hero-card img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    opacity: 0.9;
}

.hero-card:hover img {
    transform: scale(1.03);
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 20px;
    color: #fff;
    z-index: 2;
}

.cat-badge {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.hero-main {
    width: 100%;
    height: auto;
    /* Allow content to dictate height on mobile */
    aspect-ratio: 16/9;
    /* Enforce 16:9 ratio for the slider container */
    overflow: hidden;
    border-radius: 12px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
    /* Ensure slides fill the container */
}

.hero-main .hero-card {
    width: 100%;
    height: 100%;
    /* Fill the slide */
    aspect-ratio: 16/9;
    /* Redundant but safe */
    object-fit: cover;
}

.hero-main h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    transform: scale(0.6);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.hero-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    /* Add spacing on mobile between slider and side widgets */
    width: 100%;
}

.hero-side .hero-card {
    aspect-ratio: unset;
    /* Let side cards sizing be natural on mobile */
    min-height: 250px;
    /* Ensure visibility for widgets */
}

/* MOBILE POLL WIDGET STYLES */
#poll-widget-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 12px !important;
    box-sizing: border-box;
    margin-bottom: 15px !important;
}

#poll-widget-container h4 {
    font-size: 0.9rem !important;
    margin: 0 0 8px 0 !important;
    word-wrap: break-word;
}

#poll-widget-container p#poll-question {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3 !important;
}

#poll-widget-container #poll-options {
    width: 100%;
    overflow: visible;
}

#poll-widget-container label {
    display: block !important;
    padding: 8px !important;
    margin-bottom: 6px !important;
    word-wrap: break-word;
    overflow: visible !important;
    white-space: normal !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

#poll-widget-container button {
    width: 100% !important;
    padding: 8px !important;
    font-size: 0.85rem !important;
    margin-top: 5px !important;
}

@media (min-width: 992px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 3fr 1.2fr;
        gap: 20px;
        height: 450px;
        /* SABİT YÜKSEKLİK */
        overflow: hidden;
        margin-bottom: 20px;
    }

    .hero-main {
        height: 100%;
        width: 100%;
    }

    .hero-main .hero-card {
        height: 100%;
        width: 100%;
        border-radius: 12px;
    }

    .hero-side {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        gap: 20px;
        /* SABİT BOŞLUK */
        overflow: hidden;
    }

    /* 1. REKLAM KARTI (180px) */
    .hero-side .hero-card {
        flex: 0 0 180px;
        /* SABİT YÜKSEKLİK */
        height: 180px;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        margin: 0 !important;
    }

    .hero-side .hero-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 2. ANKET KARTI (250px) */
    /* 180 (Reklam) + 20 (Boşluk) + 250 (Anket) = 450 (Slider) */
    #poll-widget-container {
        flex: 0 0 250px;
        /* SABİT YÜKSEKLİK */
        height: 250px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        padding: 15px !important;
        margin-bottom: 0 !important;
        border-radius: 12px;
    }

    #poll-widget-container h4 {
        margin: 0 0 10px 0 !important;
        font-size: 1rem !important;
        flex-shrink: 0;
        text-align: center;
        /* BAŞLIK ORTALANDI */
        width: 100%;
    }

    #poll-widget-container p#poll-question {
        margin-bottom: 5px !important;
        /* Biraz kıstım */
        font-size: 0.9rem !important;
        line-height: 1.3;
        flex-shrink: 0;
        max-height: 55px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        text-align: center;
        /* Soruyu da ortalayalım şık dursun */
    }

    #poll-options {
        flex: 1;
        /* Kalan tüm alanı kapla */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 4px;
        /* Seçenekler arası minik boşluk */
        padding-bottom: 5px;
    }

    #poll-widget-container label {
        flex: 1;
        /* SEÇENEK SAYISINA GÖRE YÜKSEKLİK AYARLA */
        display: flex;
        align-items: center;
        /* DİKEY ORTALA (ÖNEMLİ) */
        justify-content: flex-start;
        /* SOLA YASLA */
        padding: 0 10px !important;
        margin: 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        /* Satır yüksekliğini sıfırla */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }

    #poll-widget-container label input {
        margin-top: 0 !important;
        /* Input kaymasını engelle */
        margin-bottom: 0 !important;
    }

    #poll-widget-container button {
        margin-top: 0 !important;
        padding: 8px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0;
    }
}

/* 4. İÇERİK ve SIDEBAR */
.content-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Masaüstünde Sidebar Genişliği */
@media (min-width: 992px) {
    .content-split {
        grid-template-columns: 3fr 1.2fr;
        align-items: start;
    }

    .sidebar {
        position: sticky;
        top: 90px;
        margin-top: 55px;
        /* Hizalamayı düzeltmek için */
    }

    .news-feed {
        margin-top: 55px;
    }
}

.section-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    margin-bottom: -12px;
    padding-bottom: 10px;
}

.feed-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media(min-width: 768px) {
    .feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feed-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feed-img {
    height: 200px;
    overflow: hidden;
}

.feed-img img {
    width: 100%;
    height: 100%;
}

.feed-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.feed-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--dark);
}

/* SIDEBAR DÜZELTMESİ (BURASI ÇOK ÖNEMLİ) */
.widget {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.widget-header {
    background: #f8fafc;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-tradingview-box {
    width: 100%;
    height: 500px !important;
    /* Yükseklik zorlaması */
    display: block;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.sidebar-tradingview-box iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
}

.trend-list {
    padding: 15px;
}

.trend-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.trend-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e5e7eb;
    line-height: 1;
}

.trend-info h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

/* 5. FOOTER */
.main-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.sc-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* 6. YORUM ALANI (MODERN) */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.comments-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 8px;
}

.comment-form {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.2s;
    background: #fff;
    font-family: var(--font);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: transform 0.2s;
}

.comment-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-color: #d1d5db;
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

.comment-text {
    line-height: 1.7;
    color: #4b5563;
}

@media(max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .comment-item {
        flex-direction: column;
        gap: 15px;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* 7. RESPONSIVE VIDEO (GLOBAL) */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 12px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile: Hide header search form on small screens */
@media (max-width: 768px) {
    .header-right form {
        display: none !important;
    }
}


/* =========================================
   SOCIAL SHARE STYLES (Clean & Professional)
   ========================================= */
.share-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #374151;
    display: none;
    /* Hidden by default */
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Brand Colors */
.btn-whatsapp {
    background-color: #25D366;
}

.btn-twitter {
    background-color: #000000;
}

.btn-linkedin {
    background-color: #0077b5;
}

.btn-copy {
    background-color: #6b7280;
    cursor: pointer;
}

/* DESKTOP: Floating Sidebar */
@media (min-width: 992px) {
    .share-container {
        position: fixed;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        z-index: 100;
        background: white;
        padding: 15px 10px;
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #f3f4f6;
    }

    .share-label {
        display: block;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        margin-bottom: 10px;
        font-size: 0.75rem;
        letter-spacing: 1px;
        color: #9ca3af;
    }
}

/* MOBILE: Inline Row */
@media (max-width: 991px) {
    .share-container {
        position: relative;
        flex-direction: row;
        justify-content: center;
        margin: 30px 0;
        width: 100%;
    }

    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .share-label {
        display: block;
        margin-right: 10px;
    }
}