/* =========================================
   BİLİŞİMTÜRK CMS - STYLE V7
   ========================================= */
: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 */
.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;
    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; }

/* MENU - MOBILE */
@media (max-width: 991px) {
    .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;
    }
    .mobile-menu-btn:hover { color: var(--primary); background: #e5e7eb; }
    .header-left { display: flex; align-items: center; z-index: 1001; }
    .main-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0; left: -320px;
        width: 300px; height: 100vh;
        background: #fff;
        z-index: 100000;
        padding: 90px 15px 30px;
        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;
    }
    .main-nav.active { left: 0; }
    .main-nav a {
        display: block;
        padding: 14px 20px;
        margin-bottom: 12px;
        font-size: 1rem;
        color: #4b5563;
        font-weight: 600;
        background: #fff;
        border: 1px solid #f3f4f6;
        border-radius: 12px;
        text-align: left;
        transition: all 0.2s;
    }
    .main-nav a:hover { background: #f9fafb; color: var(--primary); transform: translateX(5px); border-color: #e5e7eb; }
    .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: 1;
        transition: opacity 0.3s;
    }
}

/* MENU - DESKTOP */
@media (min-width: 992px) {
    .mobile-menu-btn { display: none !important; }
    .logo { font-size: 1.8rem; }
    .main-nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto; height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-left: 40px;
        gap: 25px;
        border: none;
        overflow: visible;
    }
    .main-nav a {
        display: inline-block;
        padding: 10px 0;
        margin-bottom: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #374151;
        background: transparent;
        border: none;
        border-radius: 0;
        position: relative;
        transition: color 0.2s;
    }
    .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; }
    .main-nav a:hover::after,
    .main-nav a.active::after { width: 100%; }
    .main-nav a.active { color: var(--primary); background: transparent; }
    .main-nav.active::before { display: none; }
}

/* =========================================
   3. HERO / SLIDER ALANI
   ========================================= */
.main-wrapper {
    padding-top: 20px;
    padding-bottom: 60px;
}

/* Mobil: tek kolon, yükseklik otomatik */
.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;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
}
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; height: 100%; }
.hero-main .hero-card {
    width: 100%; height: 100%;
    aspect-ratio: 16/9;
    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.8);
    background: rgba(0,0,0,0.5);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
}
.swiper-button-next::after { content: '\f054'; }
.swiper-button-prev::after { content: '\f053'; }

/* Mobil: yan blok */
.hero-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}
.hero-side .hero-card {
    aspect-ratio: unset;
    min-height: 250px;
}

/* POLL - Mobil */
.poll-widget {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 12px !important;
    box-sizing: border-box;
    margin-bottom: 15px !important;
}
.poll-widget h4 { font-size: 0.9rem !important; margin: 0 0 8px 0 !important; word-wrap: break-word; }
.poll-widget .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 .poll-options { width: 100%; overflow: visible; }
.poll-widget 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 button {
    width: 100% !important; padding: 8px !important;
    font-size: 0.85rem !important; margin-top: 5px !important;
}

/* =========================================
   HERO GRID + YAN BLOK - DESKTOP
   ========================================= */
@media (min-width: 992px) {

    /* Grid: slider 3fr, yan blok 1.2fr — yükseklik sabit, overflow visible
       (overflow:hidden kaldırıldı — Shorts iframe'i kesiliyordu) */
    .hero-grid {
        grid-template-columns: 3fr 1.2fr;
        gap: 20px;
        height: 500px;
        overflow: visible;
        margin-bottom: 20px;
        align-items: stretch;
    }
    .hero-grid--single { grid-template-columns: 1fr !important; }

    .hero-main { height: 100%; width: 100%; overflow: hidden; }
    .hero-main .hero-card { height: 100%; width: 100%; border-radius: 12px; }

    /* Yan blok: normal modda reklam + anket */
    .hero-side {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        gap: 15px;
        overflow: visible;
        margin-top: 0;
    }

    /* Reklam kartı — max 150px */
    .hero-side > .hero-card {
        flex: 0 0 auto;
        height: auto !important;
        max-height: 150px !important;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        margin: 0 !important;
    }
    .hero-side > .hero-card img {
        width: 100%; height: auto !important; object-fit: contain;
    }

    /* Anket kartı */
    .poll-widget {
        flex: 0 0 auto;
        height: max-content !important;
        display: flex;
        flex-direction: column;
        overflow: visible;
        padding: 12px !important;
        margin-bottom: 0 !important;
        border-radius: 12px;
    }
    .poll-widget h4 {
        margin: 0 0 6px 0 !important; font-size: 0.95rem !important;
        flex-shrink: 0; text-align: center; width: 100%;
    }
    .poll-widget .poll-question {
        margin-bottom: 4px !important; font-size: 0.85rem !important;
        line-height: 1.2; flex-shrink: 0; max-height: 45px; overflow: hidden;
        display: -webkit-box; line-clamp: 3; -webkit-line-clamp: 3;
        -webkit-box-orient: vertical; text-align: center;
    }
    .poll-widget .poll-options {
        flex: 1; overflow: visible; display: flex;
        flex-direction: column; gap: 4px; padding-bottom: 5px;
    }
    .poll-widget label {
        flex: 1; display: flex; align-items: center;
        justify-content: flex-start; padding: 0 8px !important;
        margin: 0 !important; font-size: 0.8rem !important; line-height: 1.1 !important;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; transition: all 0.2s;
    }
    .poll-widget label input { margin-top: 0 !important; margin-bottom: 0 !important; }
    .poll-widget button {
        margin-top: 0 !important; padding: 8px !important;
        font-size: 0.9rem !important; flex-shrink: 0;
    }

    /* =========================================
       SHORTS MODU — YAN BLOK TAMAMI DOLAR
       Zincir: hero-side--shorts
               → hero-card (tek çocuk, flex:1)
               → hero-card--shorts (display:flex, flex-direction:col, h:100%)
               → hero-short-widget (flex:1)
               → hero-short-stage (flex:1, aspect-ratio:none)
       ========================================= */
    .hero-side--shorts {
        /* justify-content override: stretch moduna al */
        justify-content: stretch !important;
        gap: 0 !important;
        overflow: hidden;
    }

    /* Tek çocuk kart tüm yüksekliği kaplar */
    .hero-side--shorts > .hero-card {
        flex: 1 1 100% !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Shorts kart içi: tam yükseklik flex */
    .hero-side--shorts .hero-card--shorts {
        flex: 1 1 auto;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Widget de flex column, yüksekliği dolduruyor */
    .hero-side--shorts .hero-short-widget {
        flex: 1 1 auto;
        height: 100%;
    }

    /* Stage: aspect-ratio kaldır, flex ile doldursun */
    .hero-side--shorts .hero-short-stage {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        aspect-ratio: unset !important;
    }
}

/* =========================================
   SHORTS WIDGET — GENEL STİLLER
   ========================================= */
.hero-short-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0f172a;
    color: #fff;
}
.hero-short-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px;
    background: linear-gradient(135deg, rgba(2,6,23,0.88), rgba(30,41,59,0.78));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.hero-short-title { font-size: 0.95rem; font-weight: 700; }
.hero-short-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700;
    color: #fbbf24; text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-short-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    background: #020617;
}
.hero-short-slide {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.hero-short-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-short-slide iframe { width: 100%; height: 100%; border: 0; }
.hero-short-footer {
    display: flex; justify-content: center;
    gap: 8px; padding: 12px 16px 16px;
    background: #020617; flex-shrink: 0;
}
.hero-short-dot {
    width: 9px; height: 9px; border: 0;
    border-radius: 999px; background: rgba(255,255,255,0.28);
    padding: 0; cursor: pointer;
}
.hero-short-dot.is-active { background: #fff; }
.hero-short-placeholder {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; height: 100%; padding: 24px;
    color: #cbd5e1; text-align: center;
}

@media (max-width: 991px) {
    .hero-short-stage { aspect-ratio: 9/16; min-height: 360px; }
}

/* =========================================
   4. İÇERİK + SIDEBAR
   Sidebar: min 300px, max 340px
   ========================================= */
.sidebar-widget-body { padding: 20px; }

.content-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .content-split {
        /* min 300px — widget'lar artık dar kalmaz */
        grid-template-columns: 1fr minmax(300px, 340px);
        align-items: start;
        gap: 40px;
    }
    .sidebar {
        position: sticky;
        top: 90px;
        margin-top: 55px;
        min-width: 0; /* grid taşmasını engelle */
    }
    .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 WIDGET */
.widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 30px;
    /* Tam genişliği kullan */
    width: 100%;
}
.widget-header {
    background: #f8fafc;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}
.widget-title { font-size: 1rem; font-weight: 700; margin: 0; }

/* Sidebar anket widget'ı genişliği */
.sidebar .poll-widget {
    padding: 16px !important;
    width: 100% !important;
}
.sidebar .poll-widget label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.4 !important;
    padding: 8px 10px !important;
    height: auto !important;
    min-height: 36px;
}

.sidebar-tradingview-box {
    width: 100%; height: 500px !important;
    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: #fff; 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 */
.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. VIDEO */
.video-container {
    position: relative; padding-bottom: 56.25%; 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; }

@media (max-width: 768px) { .header-right form { display: none !important; } }

/* =========================================
   SOCIAL SHARE
   ========================================= */
.share-container { display: flex; gap: 10px; align-items: center; }
.share-label { font-weight: 700; font-size: 0.9rem; color: #374151; display: none; }
.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; }
.btn-whatsapp { background-color: #25D366; }
.btn-twitter { background-color: #000; }
.btn-linkedin { background-color: #0077b5; }
.btn-copy { background-color: #6b7280; cursor: pointer; }

@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;
    }
}
@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; }
}
