/*
   Krafttürk - Tipografi Stilleri
   typography.css
*/

.text-typo {
    /* =========================================
     BAŞLIKLAR (Headings)
     ========================================= */

    h1 {
        font-size: 1.875rem;
        font-weight: 600;
        line-height: 1.3;
        color: var(--navy-dark);
        margin-bottom: 1.5rem;
        margin-top: 0;
    }

    h2 {
        font-size: 1.4rem;
        font-weight: 600;
        line-height: 1.35;
        color: var(--navy-dark);
        margin-bottom: 1.25rem;
        margin-top: 2rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--border-light);
    }

    h2:first-child {
        margin-top: 0;
    }

    h3 {
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.4;
        color: var(--navy-dark);
        margin-bottom: 0.875rem;
        margin-top: 1.5rem;
    }

    h3:first-child {
        margin-top: 0;
    }

    h4 {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.5;
        color: var(--navy-dark);
        margin-bottom: 0.75rem;
        margin-top: 1.25rem;
    }

    h5 {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.5;
        color: var(--navy-dark);
        margin-bottom: 0.625rem;
        margin-top: 1rem;
    }

    h6 {
        font-size: 0.875rem;
        font-weight: 600;
        line-height: 1.5;
        color: var(--navy-dark);
        margin-bottom: 0.625rem;
        margin-top: 1rem;
    }

    /* =========================================
     PARAGRAFLAR
     ========================================= */

    p {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.7;
        color: var(--text-secondary);
        margin-bottom: 1.25rem;
    }

    p:last-child {
        margin-bottom: 0;
    }

    p.lead {
        font-size: 1.0625rem;
        line-height: 1.7;
        color: var(--text-primary);
        margin-bottom: 1.25rem;
    }

    p.small {
        font-size: 0.9375rem;
        line-height: 1.6;
        color: var(--text-muted);
    }

    p.muted {
        color: var(--text-light);
    }

    /* =========================================
     LİNKLER
     ========================================= */

    a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: color var(--transition-base);
    }

    a:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    a:active {
        color: var(--primary-dark);
    }

    a.link-muted {
        color: var(--text-secondary);
        font-weight: 400;
    }

    a.link-muted:hover {
        color: var(--primary);
    }

    /* =========================================
     LİSTELER
     ========================================= */

    ul,
    ol {
        margin: 1rem 0;
        padding-left: 2rem;
    }

    ul ul,
    ul ol,
    ol ul,
    ol ol {
        margin-bottom: 0;
        margin-top: 0.5rem;
    }

    li {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.7;
        color: var(--text-secondary);
        margin-bottom: 0.5rem;
    }

    li:last-child {
        margin-bottom: 0;
    }

    /* Unordered List */
    ul {
        list-style-type: disc;
    }

    ul ul {
        list-style-type: circle;
    }

    ul ul ul {
        list-style-type: square;
    }

    /* Ordered List */
    ol {
        list-style-type: decimal;
    }

    ol ol {
        list-style-type: lower-alpha;
    }

    ol ol ol {
        list-style-type: lower-roman;
    }

    /* =========================================
     BLOCKQUOTE
     ========================================= */

    blockquote {
        border-left: 4px solid var(--primary);
        padding: 1rem 1rem 1rem 1.5rem;
        margin: 1.5rem 0;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.7;
        color: var(--text-primary);
        font-style: italic;
        background-color: var(--gray-50);
        border-radius: var(--radius-md);
    }

    blockquote p {
        margin-bottom: 0.5rem;
    }

    blockquote p:last-child {
        margin-bottom: 0;
    }

    blockquote cite {
        display: block;
        font-size: 0.875rem;
        color: var(--text-muted);
        font-style: normal;
        margin-top: 0.75rem;
    }

    /* =========================================
     KOD
     ========================================= */

    code {
        background-color: var(--gray-100);
        color: var(--navy-dark);
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        font-family: "Courier New", monospace;
        font-size: 0.875rem;
    }

    pre {
        background-color: var(--navy-dark);
        color: var(--white);
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        overflow-x: auto;
        margin: 1.5rem 0;
        font-family: "Courier New", monospace;
        font-size: 0.875rem;
        line-height: 1.6;
    }

    pre code {
        background-color: transparent;
        color: inherit;
        padding: 0;
        border-radius: 0;
    }

    /* =========================================
     YATAY ÇİZGİ
     ========================================= */

    hr {
        border: none;
        border-top: 1px solid var(--border-color);
        margin: 2rem 0;
        height: 0;
    }

    hr.thick {
        border-top: 2px solid var(--border-color);
        margin: 2.5rem 0;
    }

    hr.light {
        border-top-color: var(--border-light);
    }

    /* =========================================
     TABLOLAR
     ========================================= */

    table {
        width: 100%;
        border-collapse: collapse;
        margin: 1.5rem 0;
        font-size: 0.9375rem;
        box-shadow: var(--shadow-sm);
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    table thead {
        background-color: var(--navy-dark);
    }

    table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        color: var(--white);
        border: none;
    }

    table td {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid var(--border-light);
        color: var(--text-secondary);
        font-weight: 400;
    }

    table tbody tr:hover {
        background-color: var(--gray-50);
    }

    table tbody tr:last-child td {
        border-bottom: none;
    }

    /* =========================================
     GÜÇLÜ VE İTALİK
     ========================================= */

    strong,
    b {
        font-weight: 600;
        color: var(--navy-dark);
    }

    em,
    i {
        font-style: italic;
        color: var(--text-primary);
    }

    mark {
        background-color: #fff3cd;
        padding: 0.125rem 0.25rem;
        border-radius: var(--radius-sm);
    }

    /* =========================================
     KISALTMALAR
     ========================================= */

    abbr[title] {
        border-bottom: 1px dotted var(--border-color);
        cursor: help;
        text-decoration: none;
    }

    /* =========================================
     KÜÇÜK METİN
     ========================================= */

    small {
        font-size: 0.875rem;
        font-weight: 400;
        color: var(--text-muted);
    }

    /* =========================================
     TANIMLAR
     ========================================= */

    dl {
        margin: 1rem 0;
    }

    dt {
        font-weight: 600;
        color: var(--navy-dark);
        margin-top: 0.75rem;
        margin-bottom: 0.25rem;
    }

    dt:first-child {
        margin-top: 0;
    }

    dd {
        margin-left: 2rem;
        margin-bottom: 0.75rem;
        color: var(--text-secondary);
        line-height: 1.7;
        font-weight: 400;
    }

    /* =========================================
     VİDEO
     ========================================= */

    .video-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        /* 16:9 Aspect Ratio */
        height: 0;
        overflow: hidden;
        margin: 1.5rem 0;
        border-radius: var(--radius-lg);
        background-color: var(--navy-dark);
        box-shadow: var(--shadow-md);
    }

    .video-container iframe,
    .video-container video,
    .video-container object,
    .video-container embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: var(--radius-lg);
    }

    /* =========================================
     GALERİ
     ========================================= */

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-lg);
        background-color: var(--gray-100);
        aspect-ratio: 1;
        cursor: pointer;
        transition: all var(--transition-base);
        box-shadow: var(--shadow-sm);
    }

    .gallery-item a {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(63, 57, 52, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 10;
    }

    .gallery-overlay i {
        font-size: 2.5rem;
        color: var(--white);
        font-style: normal;
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

    /* =========================================
     YARDIMCI SINIFLARI
     ========================================= */

    .text-center {
        text-align: center;
    }

    .text-right {
        text-align: right;
    }

    .text-left {
        text-align: left;
    }

    .text-justify {
        text-align: justify;
    }

    .text-primary {
        color: var(--primary);
    }

    .text-secondary {
        color: var(--text-secondary);
    }

    .text-muted {
        color: var(--text-muted);
    }

    .text-light {
        color: var(--text-light);
    }

    .text-dark {
        color: var(--navy-dark);
    }

    .text-white {
        color: var(--white);
    }

    .font-bold {
        font-weight: 600;
    }

    .font-semibold {
        font-weight: 500;
    }

    .font-normal {
        font-weight: 400;
    }

    .font-light {
        font-weight: 300;
    }

    .line-height-tight {
        line-height: 1.2;
    }

    .line-height-normal {
        line-height: 1.6;
    }

    .line-height-relaxed {
        line-height: 1.7;
    }

    .line-height-loose {
        line-height: 1.9;
    }

    .letter-spacing-tight {
        letter-spacing: -0.02em;
    }

    .letter-spacing-normal {
        letter-spacing: 0;
    }

    .letter-spacing-wide {
        letter-spacing: 0.05em;
    }

    .uppercase {
        text-transform: uppercase;
    }

    .lowercase {
        text-transform: lowercase;
    }

    .capitalize {
        text-transform: capitalize;
    }

    .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* =========================================
     MOBİL RESPONSIVE
     ========================================= */

    @media (max-width: 768px) {
        h1 {
            font-size: 1.625rem;
        }

        h2 {
            font-size: 1.375rem;
            margin-top: 1.5rem;
        }

        h3 {
            font-size: 1rem;
            margin-top: 1.25rem;
        }

        h4 {
            font-size: 0.9375rem;
        }

        p {
            font-size: 0.9375rem;
            line-height: 1.65;
        }

        li {
            font-size: 0.9375rem;
        }

        table {
            font-size: 0.875rem;
        }

        table th,
        table td {
            padding: 0.75rem 0.625rem;
        }

        blockquote {
            padding: 1rem 1rem 1rem 1.25rem;
            margin: 1.25rem 0;
            font-size: 0.9375rem;
        }

        .gallery {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
        }
    }

    @media (max-width: 480px) {
        h1 {
            font-size: 1.5rem;
            margin-bottom: 1.25rem;
        }

        h2 {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            margin-top: 1.25rem;
        }

        h3 {
            font-size: 0.9375rem;
            margin-top: 1rem;
            margin-bottom: 0.75rem;
        }

        h4 {
            font-size: 0.875rem;
        }

        p {
            font-size: 0.875rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        li {
            font-size: 0.875rem;
        }

        ul,
        ol {
            padding-left: 1.5rem;
            margin-bottom: 1rem;
        }

        table {
            font-size: 0.8125rem;
            margin: 1.25rem 0;
        }

        table th,
        table td {
            padding: 0.625rem 0.5rem;
        }

        blockquote {
            padding: 0.875rem 1rem 0.875rem 1rem;
            margin: 1rem 0;
            font-size: 0.875rem;
        }

        .gallery {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 0.75rem;
        }
    }
}