﻿
*, *::before, *::after {
    box-sizing: border-box;
}

::selection {
    background-color: #1abc9c; /* Seçim arka plan rengi */
    color: white; /* İsteğe bağlı: Seçilen metin rengi */
}

::-moz-selection { /* Firefox için */
    background-color: #1abc9c; /* Seçim arka plan rengi */
    color: white; /* İsteğe bağlı: Seçilen metin rengi */
}

html {
    font-family: Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial;
    font-size: 16px;
}




.txt-ilove {
    color: var(--accent-700) !important;
}


body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    min-height: 100lvh;
}

.text-muted {
    color: var(--muted) !important;
}
/* Header / navbar */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 1080;
    transition: all .26s cubic-bezier(.22,1,.36,1);
    background: transparent;
}

.site-header .navbar {
    padding: .6rem 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    backdrop-filter: blur(6px);
}




/* NAV LINKS - readable contrast ensured */
.nav-link {
    position: relative;
    padding: .45rem .6rem;
    color: var(--fg);
    font-weight: 600;
    border-radius: 8px;
    transition: color var(--motion-slow),background var(--motion-slow)
}

    .nav-link:hover, .nav-link:focus {
        color: var(--primary-700);
        background: color-mix(in srgb, var(--primary-500) 6%, transparent)
    }

    .nav-link::after {
        content: '';
        position: absolute;
        left: 18%;
        right: 18%;
        height: 2px;
        bottom: 6px;
        border-radius: 2px;
        background: linear-gradient(90deg, rgba(61,130,111,0.10), rgba(111,193,179,0.18));
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .16s cubic-bezier(.22,1,.36,1),opacity .16s;
        opacity: 0
    }

    .nav-link:hover::after, .nav-link:focus::after {
        transform: scaleX(1);
        opacity: 1
    }


/* Offcanvas (mobile) */
.offcanvas-end {
    --bs-offcanvas-width: 86%;
    max-width: 420px;
    background: var(--surface);
    color: var(--fg);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 1090;
}

/* Özel kapatma butonu (ikon rengi currentColor ile kontrol ediliyor) */
.btn-close-custom {
    background: none; /* Bootstrap'ın gömülü ikonunu sil */
    width: 0.9rem;
    height: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 2.5l11 11m0-11l-11 11' stroke='currentColor' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 2.5l11 11m0-11l-11 11' stroke='currentColor' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
    background-color: currentColor; /* mask buradan boyanıyor */
    color: var(--fg); /* senin renk tokenından alıyor */
    opacity: .9;
    border-radius: 8px; /* istersen arka plan kutusu */
}

    .btn-close-custom:hover {
        color: var(--primary-600);
        opacity: 1;
    }

.offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border)
}

.offcanvas-body {
    padding: 1.25rem
}

.btn-hamburger {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent
}

    .btn-hamburger:focus-visible {
        outline: 3px solid var(--ring);
        outline-offset: 2px
    }



/* Accessibility helpers */
.visually-hidden-focusable:focus {
    position: static !important;
    clip: auto !important;
    overflow: visible !important;
    height: auto !important;
    width: auto !important
}
