/* ==========================================
   FINANSTIK - ORTAK MOBİL TASARIM
   ========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   MOBİL
   ========================================== */

@media (max-width: 768px) {

    body {
        width: 100%;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    /* Ana içeriklerin ekran dışına taşmasını önle */
    main,
    section,
    article,
    header,
    footer,
    nav {
        max-width: 100% !important;
    }

    /* Genel kapsayıcılar */
    .container,
    .wrapper,
    .content,
    .main-content,
    .page-container,
    .section-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* ======================================
       GRID
       ====================================== */

    .grid,
    .cards-grid,
    .card-grid,
    .guide-grid,
    .article-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ======================================
       KARTLAR
       ====================================== */

    .card,
    .guide-card,
    .info-card,
    .content-card,
    .hero-card,
    .article-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ======================================
       YATAY TAŞMAYI ÖNLE
       ====================================== */

    .row,
    .flex,
    .card-row,
    .features,
    .stats,
    .columns {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* ======================================
       TABLOLAR
       ====================================== */

    .table-wrapper,
    .table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    table {
        max-width: 100% !important;
    }

    /* ======================================
       YAZILAR
       ====================================== */

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    h1 {
        font-size: clamp(28px, 8vw, 38px) !important;
        line-height: 1.15 !important;
    }

    h2 {
        font-size: clamp(23px, 6vw, 30px) !important;
        line-height: 1.2 !important;
    }

    h3 {
        font-size: 19px !important;
        line-height: 1.25 !important;
    }

    /* ======================================
       FORM ELEMANLARI
       ====================================== */

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    input,
    select,
    textarea {
        width: 100%;
    }

    /* ======================================
       BÜYÜK YATAY BÖLÜMLER
       ====================================== */

    .hero,
    .hero-section,
    .section,
    .content-section,
    .guide-section {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ======================================
       FLEX ELEMANLARI
       ====================================== */

    .hero-content,
    .content-grid,
    .calculator-layout,
    .result-layout {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* ======================================
       KOD / UZUN METİN
       ====================================== */

    pre,
    code {
        max-width: 100%;
        overflow-x: auto;
    }

}