/*
|--------------------------------------------------------------------------
| ARTVİN CEPTE - ORTAK KULLANICI ARAYÜZÜ
|--------------------------------------------------------------------------
|
| Mobil öncelikli ortak site tasarımı.
|
*/


/*
|--------------------------------------------------------------------------
| DEĞİŞKENLER
|--------------------------------------------------------------------------
*/

:root {

    --ac-green: #13233b;
    --ac-green-dark: #0f1f35;
    --ac-green-light: #20395a;

    --ac-green-soft: #eef1f8;
    --ac-green-soft-2: #f7f8fb;

    --ac-orange: #f06f4f;

    --ac-text: #172238;
    --ac-muted: #657083;

    --ac-surface: #ffffff;
    --ac-background: #fbf8f1;

    --ac-border: #e7e3dc;

    --ac-danger: #b42318;

    --ac-container: 1180px;

    --ac-radius-sm: 10px;
    --ac-radius: 16px;
    --ac-radius-lg: 22px;

    --ac-shadow:
        0 8px 25px
        rgba(
            20,
            53,
            38,
            .07
        );

    --ac-shadow-lg:
        0 14px 38px
        rgba(
            20,
            53,
            38,
            .11
        );
}


/*
|--------------------------------------------------------------------------
| RESET
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background:
        var(--ac-background);

    color:
        var(--ac-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing:
        antialiased;

    text-rendering:
        optimizeLegibility;
}


a {

    color: inherit;

    text-decoration: none;
}


img {

    display: block;

    max-width: 100%;
}


button,
input,
select,
textarea {

    font: inherit;
}


button {
    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| ORTAK CONTAINER
|--------------------------------------------------------------------------
*/

.site-container {

    width:
        min(
            calc(100% - 32px),
            var(--ac-container)
        );

    margin:
        0 auto;
}


/*
|--------------------------------------------------------------------------
| ADMIN BAKIM MODU UYARISI
|--------------------------------------------------------------------------
*/

.site-maintenance-bar {

    position: sticky;

    top: 0;

    z-index: 2000;

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        8px
        14px;

    background:
        var(--ac-orange);

    color:
        #382400;

    font-size: 12px;

    font-weight: 800;

    text-align: center;
}


.site-maintenance-bar strong {
    font-weight: 900;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header {

    position: sticky;

    top:
        var(
            --site-header-top,
            0px
        );

    z-index: 1000;

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    border-bottom:
        1px solid
        var(--ac-border);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


.site-header-inner {

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}


/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.site-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.site-brand-icon {

    width: 42px;
    height: 42px;

    flex:
        0
        0
        42px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            var(--ac-green-light),
            var(--ac-green-dark)
        );

    color: #ffffff;

    font-size: 19px;

    box-shadow:
        0 7px 18px
        rgba(
            15,
            75,
            55,
            .22
        );
}


.site-brand-text {

    min-width: 0;
}


.site-brand-name {

    display: block;

    overflow: hidden;

    color:
        var(--ac-green-dark);

    font-size: 17px;

    font-weight: 850;

    line-height: 1.2;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.site-brand-slogan {

    display: block;

    overflow: hidden;

    margin-top: 3px;

    color:
        var(--ac-muted);

    font-size: 10px;

    font-weight: 600;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/*
|--------------------------------------------------------------------------
| HEADER BUTONLARI
|--------------------------------------------------------------------------
*/

.site-header-actions {

    display: flex;

    align-items: center;

    gap: 7px;

    flex:
        0
        0
        auto;
}


.site-header-button {

    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding:
        8px
        12px;

    border:
        1px solid
        transparent;

    border-radius: 12px;

    background:
        var(--ac-green-soft);

    color:
        var(--ac-green-dark);

    font-size: 12px;

    font-weight: 800;

    line-height: 1.2;

    transition:
        background .18s ease,
        transform .18s ease;
}


.site-header-button:hover {

    background:
        #dcece4;

    transform:
        translateY(-1px);
}


.site-header-button.primary {

    background:
        var(--ac-green);

    color:
        #ffffff;
}


/*
|--------------------------------------------------------------------------
| DESKTOP NAV
|--------------------------------------------------------------------------
*/

.site-desktop-nav {
    display: none;
}


.site-desktop-nav a {

    padding:
        8px
        10px;

    border-radius: 10px;

    color:
        #415249;

    font-size: 13px;

    font-weight: 750;

    transition:
        background .18s ease,
        color .18s ease;
}


.site-desktop-nav a:hover {

    background:
        var(--ac-green-soft);

    color:
        var(--ac-green-dark);
}


.site-desktop-nav a.active {

    background:
        var(--ac-green-soft);

    color:
        var(--ac-green-dark);
}


/*
|--------------------------------------------------------------------------
| SAYFA ÜST BAŞLIK
|--------------------------------------------------------------------------
*/

.site-page-hero {

    padding:
        28px
        0
        22px;

    background:
        linear-gradient(
            145deg,
            #0c402f,
            #20395a
        );

    color:
        #ffffff;
}


.site-page-eyebrow {

    display: block;

    margin-bottom: 6px;

    color:
        rgba(
            255,
            255,
            255,
            .70
        );

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.site-page-title {

    margin: 0;

    font-size:
        clamp(
            27px,
            7vw,
            42px
        );

    line-height: 1.1;

    letter-spacing: -.03em;
}


.site-page-description {

    max-width: 680px;

    margin:
        9px
        0
        0;

    color:
        rgba(
            255,
            255,
            255,
            .80
        );

    font-size: 13px;

    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| ORTAK SAYFA İÇERİĞİ
|--------------------------------------------------------------------------
*/

.site-content {

    padding:
        24px
        0
        45px;
}


/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.site-card {

    background:
        var(--ac-surface);

    border:
        1px solid
        var(--ac-border);

    border-radius:
        var(--ac-radius-lg);

    box-shadow:
        0 5px 20px
        rgba(
            26,
            52,
            40,
            .04
        );
}


.site-card-padding {
    padding: 20px;
}


.site-card-title {

    margin:
        0
        0
        12px;

    font-size: 18px;

    line-height: 1.3;
}


/*
|--------------------------------------------------------------------------
| ORTAK BUTONLAR
|--------------------------------------------------------------------------
*/

.site-button {

    min-height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        9px
        15px;

    border: 0;

    border-radius: 12px;

    background:
        var(--ac-green-soft);

    color:
        var(--ac-green-dark);

    font-size: 12px;

    font-weight: 850;

    text-align: center;

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.site-button:hover {

    transform:
        translateY(-1px);
}


.site-button-primary {

    background:
        var(--ac-green);

    color:
        #ffffff;

    box-shadow:
        0 7px 18px
        rgba(
            15,
            75,
            55,
            .16
        );
}


.site-button-primary:hover {

    background:
        var(--ac-green-dark);
}


.site-button-block {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| FORMLAR
|--------------------------------------------------------------------------
*/

.site-field {

    display: grid;

    gap: 6px;
}


.site-field label {

    color:
        #53645b;

    font-size: 11px;

    font-weight: 800;
}


.site-input,
.site-select,
.site-textarea {

    width: 100%;

    min-height: 46px;

    padding:
        10px
        12px;

    border:
        1px solid
        #d4ddd8;

    border-radius: 13px;

    outline: none;

    background:
        #ffffff;

    color:
        var(--ac-text);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.site-textarea {

    min-height: 120px;

    resize: vertical;
}


.site-input:focus,
.site-select:focus,
.site-textarea:focus {

    border-color:
        #4f8a6d;

    box-shadow:
        0 0 0 3px
        rgba(
            54,
            119,
            87,
            .10
        );
}


/*
|--------------------------------------------------------------------------
| BADGE
|--------------------------------------------------------------------------
*/

.site-badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        6px
        9px;

    border-radius: 999px;

    background:
        var(--ac-green-soft);

    color:
        var(--ac-green-dark);

    font-size: 10px;

    font-weight: 850;
}


/*
|--------------------------------------------------------------------------
| BOŞ DURUM
|--------------------------------------------------------------------------
*/

.site-empty {

    padding:
        28px
        20px;

    border:
        1px dashed
        #cbd9d2;

    border-radius:
        var(--ac-radius-lg);

    background:
        #ffffff;

    color:
        var(--ac-muted);

    font-size: 13px;

    line-height: 1.6;

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| HATA
|--------------------------------------------------------------------------
*/

.site-error {

    padding:
        16px;

    border:
        1px solid
        #fecdca;

    border-radius:
        var(--ac-radius);

    background:
        #fef3f2;

    color:
        var(--ac-danger);

    font-size: 13px;

    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.site-footer {

    margin-top: auto;

    padding:
        30px
        0
        calc(
            30px +
            env(
                safe-area-inset-bottom
            )
        );

    background:
        #0d3024;

    color:
        rgba(
            255,
            255,
            255,
            .70
        );
}


.site-footer-grid {

    display: grid;

    gap: 20px;
}


.site-footer-brand {

    color:
        #ffffff;

    font-size: 17px;

    font-weight: 850;
}


.site-footer-slogan {

    display: block;

    margin-top: 5px;

    font-size: 12px;
}


.site-footer-links {

    display: flex;

    flex-wrap: wrap;

    gap:
        8px
        14px;
}


.site-footer-links a {

    color:
        rgba(
            255,
            255,
            255,
            .80
        );

    font-size: 12px;

    font-weight: 700;
}


.site-footer-links a:hover {
    color: #ffffff;
}


.site-footer-bottom {

    margin-top: 20px;

    padding-top: 16px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            .10
        );

    color:
        rgba(
            255,
            255,
            255,
            .48
        );

    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| MOBİL ALT MENÜ
|--------------------------------------------------------------------------
*/

.site-mobile-nav {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1500;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    padding:
        6px
        6px
        calc(
            6px +
            env(
                safe-area-inset-bottom
            )
        );

    background:
        rgba(
            255,
            255,
            255,
            .97
        );

    border-top:
        1px solid
        var(--ac-border);

    box-shadow:
        0 -6px 24px
        rgba(
            19,
            48,
            35,
            .08
        );

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


.site-mobile-nav a {

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    min-height: 48px;

    border-radius: 11px;

    color:
        #6a7871;

    font-size: 9px;

    font-weight: 750;

    text-align: center;
}


.site-mobile-nav-icon {

    font-size: 18px;

    line-height: 1;
}


.site-mobile-nav a.active {

    background:
        var(--ac-green-soft);

    color:
        var(--ac-green-dark);
}


/*
|--------------------------------------------------------------------------
| MOBİL MENÜ İÇİN BODY BOŞLUĞU
|--------------------------------------------------------------------------
*/

body.has-mobile-nav {

    padding-bottom:
        calc(
            68px +
            env(
                safe-area-inset-bottom
            )
        );
}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (
    min-width: 700px
) {

    .site-container {

        width:
            min(
                calc(100% - 44px),
                var(--ac-container)
            );
    }


    .site-page-hero {

        padding:
            34px
            0
            27px;
    }


    .site-card-padding {
        padding: 22px;
    }


    .site-footer-grid {

        grid-template-columns:
            1fr
            auto;

        align-items: start;
    }

}


/*
|--------------------------------------------------------------------------
| DESKTOP
|--------------------------------------------------------------------------
*/

@media (
    min-width: 1000px
) {

    .site-header-inner {
        min-height: 74px;
    }


    .site-desktop-nav {

        display: flex;

        align-items: center;

        gap: 2px;

        margin-left: auto;
    }


    .site-page-hero {

        padding:
            40px
            0
            30px;
    }


    .site-content {

        padding:
            30px
            0
            55px;
    }


    /*
    |----------------------------------------------------------------------
    | Masaüstünde mobil alt menü gizlenir
    |----------------------------------------------------------------------
    */

    .site-mobile-nav {
        display: none;
    }


    body.has-mobile-nav {
        padding-bottom: 0;
    }

}


/*
|--------------------------------------------------------------------------
| BÜYÜK EKRAN
|--------------------------------------------------------------------------
*/

@media (
    min-width: 1300px
) {

    .site-container {

        width:
            min(
                calc(100% - 60px),
                var(--ac-container)
            );
    }

}