/* =========================================================
   TRG HABER - 2026 RESPONSIVE CSS
   Mobil: 320px+
   Tablet: 600px+
   Desktop: 901px+
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f4f6f9;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* TOPBAR */
.topbar {
    width: 100%;
    background: #07111f;
    color: #cbd5e1;
    font-size: 13px;
}

.topbar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #111827;
    font-size: clamp(27px, 3vw, 39px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
    white-space: nowrap;
}

.logo strong {
    color: #e7194b;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 17px;
}

.main-nav a {
    color: #172033;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #e7194b;
}

.main-nav .nav-admin {
    padding: 9px 12px;
    color: #fff;
    background: #e7194b;
    border-radius: 8px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 10px;
    border: 1px solid #dce2ea;
    border-radius: 50%;
    background: #f3f6fa;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #1d4ed8;
    border-radius: 2px;
}

.menu-overlay {
    display: none;
}

/* BREAKING */
.breaking-bar {
    width: 100%;
    background: #e7194b;
    color: #fff;
}

.breaking-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.breaking-label {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 5px;
    background: #fff;
    color: #e7194b;
    font-size: 11px;
    font-weight: 900;
}

.breaking-track {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-track span {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ADS */
.ad {
    width: 100%;
    min-width: 0;
    margin: 22px 0;
    border: 1px dashed #aeb8c8;
    border-radius: 10px;
    background: #e9edf3;
    color: #657186;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.ad span {
    font-size: 15px;
    font-weight: 500;
}

.ad small {
    font-size: 12px;
}

.ad-top {
    min-height: 90px;
}

.ad-content {
    min-height: 90px;
}

.ad-large {
    min-height: 180px;
}

/* HERO */
.hero-section {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 18px;
}

.hero-main {
    position: relative;
    isolation: isolate;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 20px;
    color: #fff;
    background: #182235;
}

.hero-bg {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(255,255,255,.13), transparent 30%),
        linear-gradient(135deg, #0e1728 0%, #26354d 100%);
}

.hero-main::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to top, rgba(4,8,18,.8), transparent 65%);
}

.hero-content {
    width: 100%;
    max-width: 820px;
}

.category-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 7px;
    background: #e7194b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.hero-category {
    margin-top: 15px;
    color: #dbe3ee;
    font-size: 13px;
    font-weight: 700;
}

.hero-main h1 {
    max-width: 850px;
    margin: 8px 0 14px;
    font-size: clamp(30px, 4vw, 51px);
    line-height: 1.05;
    letter-spacing: -1.3px;
}

.hero-main p {
    max-width: 700px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: clamp(15px, 1.7vw, 19px);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 9px;
    background: #e7194b;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.hero-side {
    min-width: 0;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
}

.side-news {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border: 1px solid #e2e7ef;
    border-radius: 17px;
    background: #fff;
}

.side-image {
    min-height: 105px;
    margin: -22px -22px 17px;
    background: linear-gradient(135deg, #d6dde7, #718096);
}

.side-content {
    min-width: 0;
}

.eyebrow {
    color: #e7194b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.side-news h2 {
    margin: 7px 0;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.15;
}

.side-news p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
}

.side-news a {
    color: #e7194b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

/* SECTION */
.section-heading {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin: 30px 0 15px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.1;
}

.section-heading p {
    margin: 5px 0 0;
    color: #718096;
    font-size: 13px;
}

.section-heading > a {
    flex: 0 0 auto;
}

/* MARKET */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 900;
}

.live-badge i {
    width: 7px;
    height: 7px;
    display: block;
    border-radius: 50%;
    background: #22c55e;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.market-card {
    min-width: 0;
    padding: 16px;
    overflow: hidden;
    border-radius: 13px;
    background: #07111f;
    color: #fff;
}

.market-card span {
    display: block;
    overflow: hidden;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-card strong {
    display: block;
    margin: 7px 0;
    font-size: clamp(17px, 2vw, 21px);
    white-space: nowrap;
}

.market-card small {
    color: #4ade80;
    font-size: 11px;
    white-space: nowrap;
}

/* NEWS */
.all-news {
    color: #e7194b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e7ee;
    border-radius: 16px;
    background: #fff;
}

.news-card img,
.news-placeholder {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #d6dde7, #64748b);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
}

.news-placeholder b {
    color: #e7194b;
}

.news-body {
    min-width: 0;
    padding: 17px;
}

.news-meta {
    color: #e7194b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.news-meta span {
    color: #94a3b8;
    margin: 0 4px;
}

.news-card h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.2;
}

.news-card h3 a {
    color: #111827;
    text-decoration: none;
}

.news-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

/* FOOTER */
.site-footer {
    margin-top: 45px;
    padding: 45px 0 20px;
    background: #07111f;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.footer-logo {
    color: #fff;
}

.footer-brand p {
    max-width: 430px;
    color: #94a3b8;
}

.footer-column h3 {
    margin-top: 0;
    color: #fff;
    font-size: 15px;
}

.footer-column a {
    display: block;
    margin: 8px 0;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
}

.copyright {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #243044;
    color: #64748b;
    font-size: 11px;
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1000px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .main-nav {
        gap: 11px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero-section {
        grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    }

    .hero-main {
        min-height: 410px;
    }

    .market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBİL MENÜ / TELEFON
   ========================================================= */
@media (max-width: 900px) {
    .header-inner {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1101;
    }

    .main-nav {
        position: fixed;
        z-index: 1100;
        top: 0;
        right: -310px;
        width: min(310px, 86vw);
        height: 100dvh;
        padding: 90px 24px 30px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        overflow-y: auto;
        background: #fff;
        box-shadow: -12px 0 35px rgba(0,0,0,.14);
        transition: right .25s ease;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open .main-nav {
        right: 0;
    }

    body.menu-open .menu-overlay {
        display: block;
        position: fixed;
        z-index: 1090;
        inset: 0;
        background: rgba(3,8,18,.55);
    }

    .main-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid #edf0f4;
        font-size: 16px;
    }

    .main-nav .nav-admin {
        margin-top: 10px;
        border: 0;
        text-align: center;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-main {
        min-height: 400px;
    }

    .hero-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* =========================================================
   KÜÇÜK TELEFON
   ========================================================= */
@media (max-width: 600px) {
    .container {
        width: calc(100% - 22px);
    }

    .topbar-inner {
        min-height: 31px;
        font-size: 11px;
    }

    .topbar-right {
        display: none;
    }

    .logo {
        font-size: 28px;
        letter-spacing: -1.4px;
    }

    .breaking-inner {
        min-height: 40px;
        gap: 8px;
    }

    .breaking-label {
        padding: 5px 7px;
        font-size: 10px;
    }

    .breaking-track {
        font-size: 13px;
    }

    .ad {
        margin: 15px 0;
    }

    .ad-top {
        min-height: 68px;
    }

    .ad-content {
        min-height: 68px;
    }

    .ad-large {
        min-height: 110px;
    }

    .hero-main {
        min-height: 430px;
        padding: 23px;
        border-radius: 16px;
    }

    .hero-main h1 {
        font-size: clamp(29px, 8vw, 38px);
        letter-spacing: -.8px;
    }

    .hero-main p {
        font-size: 14px;
    }

    .hero-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .side-news {
        padding: 18px;
    }

    .side-image {
        margin: -18px -18px 15px;
        min-height: 110px;
    }

    .section-heading {
        align-items: flex-start;
        margin-top: 24px;
    }

    .section-heading p {
        font-size: 12px;
    }

    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .market-card {
        padding: 13px;
    }

    .market-card strong {
        font-size: 18px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .news-card img,
    .news-placeholder {
        height: 190px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */
@media (max-width: 360px) {
    .container {
        width: calc(100% - 18px);
    }

    .logo {
        font-size: 25px;
    }

    .hero-main {
        min-height: 400px;
        padding: 19px;
    }

    .hero-main h1 {
        font-size: 28px;
    }

    .market-grid {
        grid-template-columns: 1fr 1fr;
    }

    .market-card {
        padding: 11px;
    }

    .market-card strong {
        font-size: 16px;
    }

    .all-news {
        font-size: 11px;
    }
}
