/* =========================================================
   GLOBAL THEME
========================================================= */

:root {
    --bg: #F5F1E8;
    --text: #212529;
    --muted: #6c757d;
    --border: #dee2e6;
    --card: #F0EDE2;
    --navbar: #F5F1E8;
    --input: #ffffff;
    --hover: #f3f4f6;
    --green: #39a96b;
    --green-dark: #2d8f59;
}


/* =========================================================
   DARK THEME VARIABLES
========================================================= */

html.dark {
    --bg: #0f1115;
    --text: #e8eaed;
    --muted: #9ca3af;
    --border: #2a2f36;
    --card: #171a1f;
    --navbar: #111318;
    --input: #171a1f;
    --hover: #242930;
}


/* =========================================================
   GLOBAL
========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--bg) !important;
    color: var(--text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    min-height: 100vh;
}


/* =========================================================
   NAVBAR
========================================================= */

#mainNav {
    background-color: var(--navbar) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    #mainNav .nav-link {
        color: var(--text) !important;
        transition: color 0.2s ease;
    }

        #mainNav .nav-link:hover {
            color: var(--green) !important;
        }


    /* Mobile menu button */

    #mainNav .navbar-toggler {
        color: var(--text) !important;
        border-color: var(--border) !important;
    }

        #mainNav .navbar-toggler i {
            color: var(--text) !important;
        }


/* =========================================================
   MAIN CONTENT
========================================================= */

.site-main {
    min-height: 500px;
    background-color: var(--bg) !important;
    color: var(--text) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}


    /* Bootstrap container inside main */

    .site-main > .container {
        background-color: transparent !important;
        color: var(--text) !important;
    }


/* =========================================================
   DARK MODE - MAIN CONTENT
========================================================= */

html.dark .site-main,
html.dark .site-main > .container {
    background-color: #0f1115 !important;
    color: #e8eaed !important;
}


    /* =========================================================
   TEXT
========================================================= */

    html.dark .site-main h1,
    html.dark .site-main h2,
    html.dark .site-main h3,
    html.dark .site-main h4,
    html.dark .site-main h5,
    html.dark .site-main h6 {
        color: #f3f4f6 !important;
    }

    html.dark .site-main p {
        color: #c8cdd3 !important;
    }

html.dark .text-muted {
    color: #9ca3af !important;
}


/* =========================================================
   LINKS
========================================================= */

html.dark .site-main a {
    color: #6ed69b;
}

    html.dark .site-main a:hover {
        color: #8be4b1;
    }


/* =========================================================
   CARDS / BLOG
========================================================= */

.card,
.blog-card,
.blog-container,
.blog-content,
.post-preview {
    background-color: var(--card) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


.card-body {
    background-color: var(--card) !important;
    color: var(--text) !important;
}


/* Dark cards */

html.dark .card,
html.dark .blog-card,
html.dark .blog-container,
html.dark .blog-content,
html.dark .post-preview,
html.dark .card-body {
    background-color: #171a1f !important;
    color: #e8eaed !important;
    border-color: #2a2f36 !important;
}


/* Bootstrap white backgrounds */

html.dark .bg-white,
html.dark .bg-light {
    background-color: #171a1f !important;
    color: #e8eaed !important;
}


/* =========================================================
   FORM INPUTS
========================================================= */

input,
textarea,
select,
.form-control,
.form-select {
    background-color: var(--input) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

    input::placeholder,
    textarea::placeholder {
        color: #8b929a !important;
    }


/* Dark inputs */

html.dark input,
html.dark textarea,
html.dark select,
html.dark .form-control,
html.dark .form-select {
    background-color: #171a1f !important;
    color: #e8eaed !important;
    border-color: #343a40 !important;
}

    html.dark input:focus,
    html.dark textarea:focus,
    html.dark select:focus,
    html.dark .form-control:focus,
    html.dark .form-select:focus {
        background-color: #171a1f !important;
        color: #ffffff !important;
        border-color: var(--green) !important;
        box-shadow: 0 0 0 0.2rem rgba(57, 169, 107, 0.15) !important;
    }


/* =========================================================
   DROPDOWN
========================================================= */

.dropdown-menu {
    background-color: var(--card) !important;
    border-color: var(--border) !important;
}

.dropdown-item {
    color: var(--text) !important;
}

    .dropdown-item:hover {
        background-color: var(--hover) !important;
        color: var(--text) !important;
    }

.dropdown-header {
    color: var(--muted) !important;
}

.dropdown-divider {
    border-color: var(--border) !important;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html.dark footer {
    background-color: #0f1115 !important;
    border-color: #2a2f36 !important;
}

    html.dark footer .text-muted {
        color: #8f969e !important;
    }


/* =========================================================
   DARK MODE TOGGLE
   HTML İLE BİREBİR UYUMLU
========================================================= */

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 18px;
}


.theme-toggle {
    position: relative;
    width: 64px;
    height: 34px;
    padding: 0 !important;
    border: 1px solid #d8dee4 !important;
    border-radius: 999px !important;
    background: #f1f3f5 !important;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}


/* Sun & moon */

.theme-icon {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 13px;
    line-height: 1;
    transition: opacity 0.3s ease, color 0.3s ease;
}


    .theme-icon.sun {
        left: 9px;
        color: #e0a800;
    }


    .theme-icon.moon {
        right: 9px;
        color: #667085;
    }


/* Circle */

.theme-toggle-circle {
    position: absolute;
    z-index: 3;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease, background-color 0.3s ease;
}


/* =========================================================
   DARK TOGGLE STATE
========================================================= */

html.dark .theme-toggle {
    background: #252a31 !important;
    border-color: #414852 !important;
}


html.dark .theme-toggle-circle {
    transform: translateX(30px);
    background: #343a43;
}


html.dark .theme-icon.sun {
    opacity: 0.35;
}


html.dark .theme-icon.moon {
    color: #d9e2f2;
    opacity: 1;
}


/* Hover */

.theme-toggle:hover {
    transform: scale(1.04);
}

.theme-toggle:active {
    transform: scale(0.97);
}


/* =========================================================
   LIKE
========================================================= */

.like-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #555 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

html.dark .like-button {
    color: #c8cdd3 !important;
}


.heart-icon {
    color: #e63956 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
}

.like-button:hover .heart-icon {
    transform: scale(1.18) !important;
}

.like-count {
    color: inherit !important;
}


/* =========================================================
   SHARE
========================================================= */

.share-button {
    display: inline-flex !important;
    align-items: center !important;
    background: #edf8f1 !important;
    color: #397052 !important;
    border: 1px solid #c7e8d3 !important;
    border-radius: 20px !important;
    padding: 7px 15px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

    .share-button:hover {
        background: var(--green) !important;
        color: #ffffff !important;
        border-color: var(--green) !important;
    }


/* =========================================================
   COPY MESSAGE
========================================================= */

.copy-message {
    display: none !important;
    color: var(--green) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

    .copy-message.show {
        display: inline !important;
    }


/* =========================================================
   BLOG ACTIONS
========================================================= */

.blog-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}


/* =========================================================
   EDIT BUTTON
========================================================= */

.blog-edit-btn {
    display: inline-block !important;
    background-color: #fff1c7 !important;
    color: #c58a00 !important;
    border: 1px solid #e8c86a !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

    .blog-edit-btn:hover {
        background-color: #e0a800 !important;
        color: #ffffff !important;
        border-color: #e0a800 !important;
    }


/* =========================================================
   DELETE BUTTON
========================================================= */

.blog-delete-btn {
    display: inline-block !important;
    background-color: #fff1f1 !important;
    color: #d9534f !important;
    border: 1px solid #f0b8b8 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

    .blog-delete-btn:hover {
        background-color: #d9534f !important;
        color: #ffffff !important;
        border-color: #d9534f !important;
    }


/* =========================================================
   PUBLISH STATUS
========================================================= */

.publish-status {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
}

    .publish-status.published {
        background-color: #e4f4e9;
        color: #39a96b;
        border: 1px solid #c7e8d3;
    }

    .publish-status.draft {
        background-color: #f1f3f2;
        color: #718078;
        border: 1px solid #dce2de;
    }


/* =========================================================
   DELETE MODAL
========================================================= */

.modal-backdrop.show {
    opacity: 0.65 !important;
}

.modal-dialog {
    max-width: 460px !important;
}

.delete-modal {
    background-color: #fffaf0 !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 36px !important;
    text-align: center !important;
    box-shadow: 0 25px 70px rgba(31, 91, 62, 0.25) !important;
}


.delete-icon {
    width: 68px !important;
    height: 68px !important;
    margin: 0 auto 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #e4f4e9 !important;
    color: #39a96b !important;
    border-radius: 50% !important;
    font-size: 25px !important;
}


.delete-title {
    margin: 0 0 14px !important;
    color: #245c43 !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
}


.delete-text {
    margin: 0 auto 10px !important;
    color: #52665b !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}


    .delete-text strong {
        color: #245c43 !important;
    }


.delete-warning {
    margin: 0 0 28px !important;
    color: #89998f !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 13px !important;
}


.delete-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
}


.delete-cancel {
    background-color: #edf4ef !important;
    color: #397052 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 11px 24px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}


    .delete-cancel:hover {
        background-color: #dcebe1 !important;
    }


.delete-confirm {
    background-color: #39a96b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 11px 24px !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}


    .delete-confirm:hover {
        background-color: #2d8f59 !important;
        transform: translateY(-1px) !important;
    }


/* =========================================================
   DARK MODE - DELETE MODAL
========================================================= */

html.dark .delete-modal {
    background-color: #171a1f !important;
    color: #e8eaed !important;
}

html.dark .delete-title {
    color: #f3f4f6 !important;
}

html.dark .delete-text {
    color: #c8cdd3 !important;
}

    html.dark .delete-text strong {
        color: #ffffff !important;
    }

html.dark .delete-warning {
    color: #8f969e !important;
}

html.dark .delete-cancel {
    background-color: #252a31 !important;
    color: #c8d0d8 !important;
}

    html.dark .delete-cancel:hover {
        background-color: #30363e !important;
    }


/* =========================================================
   TABLE
========================================================= */

html.dark .table {
    --bs-table-bg: #171a1f;
    --bs-table-color: #e8eaed;
    --bs-table-border-color: #2a2f36;
}


/* =========================================================
   SMOOTH TRANSITIONS
========================================================= */

body,
#mainNav,
.site-main,
footer,
.card,
.blog-card,
.blog-container,
.blog-content,
.post-preview,
.card-body,
.dropdown-menu,
input,
textarea,
select,
.form-control,
.form-select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* =========================================================
   PUBLISH SWITCH
========================================================= */

.publish-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.publish-switch {
    position: relative !important;
    width: 52px !important;
    height: 28px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 999px !important;
    background-color: #d9dee3 !important;
    cursor: pointer !important;
    flex-shrink: 0;
    transition: background-color 0.25s ease !important;
}

.publish-switch-circle {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18) !important;
    transition: transform 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #39a96b !important;
}

.publish-switch.active {
    background-color: #39a96b !important;
}

    .publish-switch.active .publish-switch-circle {
        transform: translateX(24px) !important;
    }

.publish-info {
    display: flex;
    flex-direction: column;
}

    .publish-info strong {
        font-size: 15px;
        color: #245c43;
    }

    .publish-info small {
        color: #7a8580;
        font-size: 13px;
    }


/* DARK MODE */

html.dark .publish-switch {
    background-color: #3a4048 !important;
}

    html.dark .publish-switch.active {
        background-color: #39a96b !important;
    }

html.dark .publish-info strong {
    color: #e8eaed !important;
}

html.dark .publish-info small {
    color: #9ca3af !important;
}



/* =========================================================
   AUTH (LOGIN / REGISTER)
========================================================= */

.auth-page {
    max-width: 480px;
    margin: 40px auto 70px;
    padding: 0 20px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

    .auth-card-header h1 {
        font-size: 28px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 8px;
    }

    .auth-card-header p {
        color: var(--muted);
        font-size: 14px;
        margin: 0;
    }

.auth-card .form-label {
    font-weight: 600;
    color: var(--text);
}

.auth-card .input-group-text {
    background: var(--bg);
    border-color: var(--border);
    color: var(--muted);
}

.auth-card .form-control {
    border-color: var(--border);
    background: var(--input);
    color: var(--text);
}

    .auth-card .form-control:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 0.2rem rgba(57, 169, 107, 0.15);
    }

.btn-auth {
    background: var(--green);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    transition: background .2s ease, transform .2s ease;
}

    .btn-auth:hover,
    .btn-auth:focus {
        background: var(--green-dark);
        color: #fff;
        transform: translateY(-1px);
    }

.auth-card-footer {
    border-top: 1px solid var(--border);
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

    .auth-card-footer p {
        margin-bottom: 6px;
    }

    .auth-card-footer a {
        color: var(--green);
        font-weight: 600;
        text-decoration: none;
    }

        .auth-card-footer a:hover {
            text-decoration: underline;
        }

/* =========================================================
   FOOTER SOCIAL LINKS
========================================================= */

footer .list-inline a {
    color: var(--text) !important;
    transition: color .2s ease, transform .2s ease;
}

    footer .list-inline a:hover {
        color: var(--green) !important;
    }
/* =========================================================
   DARK MODE - EK (skills, blog ic yazi, dropdown)
========================================================= */

/* Skills kartlari */

html.dark .skills-card {
    background-color: #171a1f !important;
    border-color: #2a2f36 !important;
}

html.dark .skills-card-category {
    color: #e8eaed !important;
}

html.dark .skills-card-list li {
    color: #c8cdd3 !important;
    border-bottom-color: #2a2f36 !important;
}

/* Blog kartlari - sabit siyah yazilar */

html.dark .blog-card h3 {
    color: #f3f4f6 !important;
}

html.dark .blog-card-image {
    background-color: #242930 !important;
}

html.dark .author-info strong {
    color: #e8eaed !important;
}

html.dark .author-avatar {
    background-color: #2d8f59 !important;
}

html.dark .read-more {
    color: #6ed69b !important;
}

html.dark .blog-card-footer {
    border-top-color: #2a2f36 !important;
}

/* Kullanici dropdown menusu */

html.dark .dropdown-menu {
    background-color: #171a1f !important;
    color: #e8eaed !important;
    border-color: #2a2f36 !important;
}

html.dark .dropdown-menu .dropdown-item {
    color: #e8eaed !important;
}

html.dark .dropdown-menu .dropdown-item:hover {
    background-color: #242930 !important;
    color: #fff !important;
}

html.dark .dropdown-header {
    color: #9ca3af !important;
}

html.dark .dropdown-divider {
    border-color: #2a2f36 !important;
}
/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    cursor: pointer;
}

    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #backToTop:hover {
        background: var(--green-dark);
    }
/* =========================================================
   CHECKBOX / RADIO - global input kurali isaretli halini bozmasin
========================================================= */

.form-check-input {
    background-color: var(--bs-form-check-bg) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.form-check-input:checked {
    background-color: #39a96b !important;
    border-color: #39a96b !important;
}

.form-check-input:focus {
    border-color: #39a96b !important;
    box-shadow: 0 0 0 0.2rem rgba(57, 169, 107, 0.25) !important;
}

html.dark .form-check-input {
    background-color: #2a2f36 !important;
    border-color: #343a40 !important;
}

html.dark .form-check-input:checked {
    background-color: #39a96b !important;
    border-color: #39a96b !important;
}
/* =========================================================
   SABIT NAVBAR ALTINDA ICERIK GIZLENMESIN
========================================================= */

.site-main,
.auth-page .auth-card {
    scroll-margin-top: 70px;
}
/* Dark mode: footer ikonlari acik halka uzerinde koyu gorunsun */

html.dark footer .list-inline a .fa-inverse {
    color: #171a1f !important;
}

html.dark footer .list-inline a:hover .fa-inverse {
    color: #ffffff !important;
}

/* =========================================================
   PERSPECTIVE-STYLE TYPOGRAPHY
========================================================= */

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Merriweather", Georgia, serif;
    letter-spacing: -0.01em;
}

/* =========================================================
   PERSPECTIVE-STYLE FLOATING PILL NAVBAR
========================================================= */

#mainNav {
    position: fixed !important;
    top: 14px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030;
    background: transparent !important;
    border-bottom: none !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 !important;
}

#mainNav > .container {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(61, 61, 61, 0.10);
    box-shadow: 0 8px 30px -10px rgba(43, 43, 43, 0.18);
    padding: 6px 10px 6px 22px;
}

#mainNav .navbar-brand {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2b2b2b !important;
}

#mainNav .navbar-brand .brand-dot {
    color: var(--green);
}

#mainNav .navbar-nav > li.nav-item > a.nav-link,
#mainNav .nav-link {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

#mainNav.is-fixed,
#mainNav.is-visible {
    background: transparent !important;
    border-bottom: none !important;
}

html.dark #mainNav > .container {
    background: rgba(17, 19, 24, 0.72);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5);
}

html.dark #mainNav .navbar-brand {
    color: #e8eaed !important;
}

/* =========================================================
   PERSPECTIVE-STYLE HERO
========================================================= */

.hero-perspective {
    padding: clamp(100px, 12vw, 140px) 0 56px;
    background: transparent;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(32px, 4vw, 84px);
    align-items: center;
}

.hero-media {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(61, 61, 61, 0.28);
}

.hero-media img {
    width: 100%;
    height: clamp(300px, 34vw, 500px);
    max-height: 68vh;
    object-fit: cover;
    display: block;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.2vw, 28px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-family: "Inter", sans-serif;
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2d8f59;
    background: linear-gradient(135deg, rgba(57, 169, 107, 0.18), rgba(57, 169, 107, 0.06));
    border: 1px solid rgba(57, 169, 107, 0.30);
    border-radius: 999px;
    padding: clamp(8px, 1vw, 12px) clamp(14px, 1.6vw, 20px);
    box-shadow: 0 4px 16px -6px rgba(57, 169, 107, 0.35);
}

.hero-eyebrow .hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(57, 169, 107, 0.15);
}

.hero-copy h1 {
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(44px, 6vw, 96px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: #2b2b2b;
    margin: 0;
}

.hero-copy h1 em {
    font-style: italic;
    color: var(--green);
}

.hero-subtitle {
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.6;
    color: #6b7280;
    max-width: 30em;
    margin: 0;
}

.hero-subtitle strong {
    color: #2b2b2b;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.hero-btn {
    font-family: "Inter", sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    border-radius: 999px;
    padding: clamp(12px, 1.2vw, 16px) clamp(24px, 2.4vw, 32px);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-solid {
    background: #2b2b2b;
    color: #f5f1e8 !important;
    box-shadow: 0 10px 24px -8px rgba(43, 43, 43, 0.4);
}

.hero-btn-solid:hover {
    color: #f5f1e8 !important;
}

.hero-btn-outline {
    border: 1.5px solid #c9c4b8;
    color: #2b2b2b !important;
}

.hero-btn-outline:hover {
    border-color: var(--green);
    color: var(--green) !important;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.hero-tag {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    padding: 7px 14px;
    color: #2b2b2b;
}

.hero-tag-green { background: rgba(57, 169, 107, 0.15); }
.hero-tag-blue { background: rgba(96, 140, 201, 0.16); }
.hero-tag-purple { background: rgba(160, 122, 201, 0.16); }
.hero-tag-amber { background: rgba(210, 158, 82, 0.18); }

/* Dark mode hero */

html.dark .hero-media {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

html.dark .hero-copy h1 {
    color: #e8eaed;
}

html.dark .hero-subtitle {
    color: #9ca3af;
}

html.dark .hero-subtitle strong {
    color: #e8eaed;
}

html.dark .hero-eyebrow {
    color: #7fd3a6;
    background: rgba(57, 169, 107, 0.16);
    border-color: rgba(57, 169, 107, 0.30);
}

html.dark .hero-btn-solid {
    background: #e8eaed;
    color: #0f1115 !important;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}

html.dark .hero-btn-solid:hover {
    color: #0f1115 !important;
}

html.dark .hero-btn-outline {
    border-color: #3a4250;
    color: #e8eaed !important;
}

html.dark .hero-btn-outline:hover {
    border-color: var(--green);
    color: #7fd3a6 !important;
}

html.dark .hero-tag {
    color: #e8eaed;
}

/* Responsive hero + navbar */

@media (max-width: 991.98px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(24px, 5vw, 36px);
    }

    .hero-media img {
        height: clamp(240px, 60vw, 380px);
    }

    .hero-perspective {
        padding: clamp(92px, 14vw, 110px) 0 40px;
    }

    #mainNav > .container {
        padding: 6px 8px 6px 16px;
    }
}


/* Büyük ekranlarda hero + navbar yatayda genişlesin (fotoğraf aşağı değil yana büyüsün) */

@media (min-width: 1400px) {
    .hero-perspective > .container,
    #mainNav > .container {
        max-width: 1480px;
    }
}

/* =========================================================
   USER MENU (navbar'daki kullanici / logout)
========================================================= */

#mainNav .user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid rgba(61, 61, 61, 0.12);
    background: rgba(255, 255, 255, 0.60);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 5px 14px 5px 6px !important;
    text-transform: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#mainNav .user-menu-toggle:hover {
    border-color: rgba(57, 169, 107, 0.50);
    color: var(--text) !important;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #39a96b, #2d8f59);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px -4px rgba(45, 143, 89, 0.5);
}

.user-name {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-caret {
    font-size: 9px;
    color: #6b7280;
}

.user-dropdown {
    border-radius: 14px;
    border: 1px solid rgba(61, 61, 61, 0.10);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 8px;
    min-width: 250px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

.user-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #39a96b, #2d8f59);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.user-name-lg {
    display: block;
    color: #292d32;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    display: block;
    color: #89929a;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    margin-top: 2px;
}

.user-divider {
    margin: 6px 8px;
    opacity: 0.6;
}

.user-dropdown .user-logout,
.user-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151 !important;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(57, 169, 107, 0.10) !important;
    color: #2d8f59 !important;
}

.user-dropdown .user-logout {
    color: #dc2626 !important;
}

.user-dropdown .user-logout:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #b91c1c !important;
}

/* Dark mode */

html.dark #mainNav .user-menu-toggle {
    background: rgba(17, 19, 24, 0.60);
    border-color: rgba(255, 255, 255, 0.12);
}

html.dark .user-name {
    color: #e8eaed;
}

html.dark .user-caret {
    color: #9ca3af;
}

html.dark .user-dropdown {
    background: rgba(23, 26, 31, 0.95);
    border-color: rgba(255, 255, 255, 0.10);
}

html.dark .user-name-lg {
    color: #e8eaed;
}

html.dark .user-email {
    color: #9ca3af;
}

html.dark .user-dropdown .user-logout,
html.dark .user-dropdown .dropdown-item {
    color: #d1d5db !important;
}

html.dark .user-dropdown .dropdown-item:hover {
    background: rgba(57, 169, 107, 0.16) !important;
    color: #7fd3a6 !important;
}

html.dark .user-dropdown .user-logout {
    color: #f87171 !important;
}

html.dark .user-dropdown .user-logout:hover {
    background: rgba(220, 38, 38, 0.15) !important;
    color: #fca5a5 !important;
}

/* =========================================================
   KOD BLOKLARI + KOPYALA BUTONU (Highlight.js)
========================================================= */

pre {
    position: relative;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin: 1.2rem 0;
}

pre code {
    color: inherit;
    background: transparent;
    font-size: 0.9em;
    line-height: 1.7;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.copy-code-btn:hover {
    background: #39a96b;
    border-color: #39a96b;
    color: #fff;
}
