:root {
    --bg-black: #0f0a15;
    --deep-purple: #1a1025;
    --light-purple: #4a2b5d;
    --accent-purple: #9d50bb;
    --text-main: #eaddff;
    --text-dim: #9b8ab0;
    --border-color: #352145;
}

@font-face {
    font-family: source-pro;
    src: url(/assets/fonts/SourceCodePro-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

body {
    font-family: source-pro;
    margin: 0;
    color: var(--text-main);
    background-color: var(--bg-black);
    overflow: hidden;
}

.app-body {
    overflow: scroll;
    height: 100vh;
    overflow-x: hidden;
}

nav + main {
    padding-top: 100px;
}

nav {
    background-color: var(--bg-black);
    float: left;
    width: 100vw;
    display: inline-flex;
    align-items: center;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: bold;
}

nav a:hover {
    color: var(--text-dim);
}

/* nav-mobile.css - side drawer navigation, mobile only */

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-color);
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 400;
}

.icon-close {
    display: none;
}

body.nav-open .nav-toggle .icon-burger {
    display: none;
}

body.nav-open .nav-toggle .icon-close {
    display: block;
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 398;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s;
}

body.nav-open .nav-scrim {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 720px) {
    nav {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    nav h2 {
        flex-grow: 1;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle {
        display: flex;
    }

    .navr {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 300px);
        background: var(--surface-color);
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: calc(20px + env(safe-area-inset-top)) 20px 20px 20px;
        transform: translateX(150%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 399;
    }

    body.nav-open .navr {
        transform: translateX(10%);
    }

    .navr a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
        font-size: 15px;
    }

    .navr a:last-child {
        border-bottom: none;
    }
}

footer {
    width: 100vw;
    margin-top: 20px;
    align-items: center;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--bg-black);
    border-top: 2px solid var(--deep-purple);
}

.navr {
    margin-left: auto;
    margin-right: 20px;
}

.flr {
    float: right;
}

.center {
    margin: auto !important;
    display: table !important;
}

.avatar img {
    width: 70px;
    float: left;
}

#repos {
    position: relative;
}

.repo a {
    text-decoration: none;
    color: var(--text-main);
}

.repo {
    border: 3px solid var(--border-color);
    border-radius: 10px;
    width: 400px;
    height: 95px;
    padding: 10px;
    margin: 5px;
}

.repo:hover,
.repo:active {
    border: 3px solid var(--light-purple);
}

.repo p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
}

#repos div[repo] {
    float: left;
}

.container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.entry {
    background: linear-gradient(
        to bottom,
        var(--deep-purple) 0px,
        color-mix(in oklab, var(--deep-purple) 0%, transparent) 125px,
        color-mix(in oklab, var(--deep-purple) 0%, transparent) 375px,
        var(--deep-purple) 500px
    );
    background-color: var(--bg-black);
    float: left;
    width: 100vw;
    height: 500px;
    position: relative;
    overflow: hidden;
    view-timeline-name: --entryScroll;
    view-timeline-axis: block;
    animation: scroll-depth linear;
    animation-timeline: --entryScroll;
    animation-range: entry 0% exit 100%;
    border-top: 3px solid var(--border-color);
    border-bottom: 3px solid var(--border-color);
}

@keyframes scroll-depth {
    from {
        background-position:
            center top -120px,
            center bottom -120px;
    }
    to {
        background-position:
            center top 0px,
            center bottom 0px;
    }
}

.entry .head {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-black);
    font-weight: bold;
    z-index: 100;
    text-align: center;
    padding: 10px;
    z-index: 10;
}

.entry .sub-head {
    font-weight: normal !important;
}

.tech-tag {
    position: absolute;
    color: var(--text-dim);
    font-weight: 600;
    user-select: none;
    font-size: 16px;
    white-space: nowrap;
    pointer-events: none;
    transition:
        opacity 1.2s ease,
        left 1.2s ease,
        top 1.2s ease;
    opacity: 1;
}

.repo-category {
    float: left;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 5px;
    width: 100%;
}

.repo-group {
    display: grid;
}

.vex {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
}

@media (min-width: 1444px) {
    .repo-group {
        grid-template-columns: repeat(3, 1fr);
    }
    #repos {
        width: calc(432px * 3);
    }
    .entry .head {
        font-size: 25px;
    }
    .entry .sub-head {
        font-size: 20px;
    }
}

@media (min-width: 953px) and (max-width: 1443px) {
    .repo-group {
        grid-template-columns: repeat(2, 1fr);
    }
    #repos {
        width: calc(432px * 2);
    }
    .entry .head {
        font-size: 20px;
    }
    .entry .sub-head {
        font-size: 15px;
    }
}

@media (max-width: 952px) {
    .repo-group {
        grid-template-columns: 1fr;
    }
    #repos {
        width: 430px;
    }
    .entry .head {
        font-size: 18px;
        width: 90vw;
    }
    .entry .sub-head {
        font-size: 13px;
    }
}

@media (max-width: 450px) {
    .repo {
        width: 90vw;
    }
    #repos {
        width: 100vw;
    }
}

/* Markdown */

/* --- TABLO STİLLERİ --- */
.markdown-body table th {
    background-color: #1a1025 !important; /* Yüzey moru */
    color: #eaddff !important; /* Ana metin moru */
    border: 1px solid #352145 !important; /* Border moru */
}

.markdown-body table td {
    background-color: #0f0a15 !important; /* Arka plan siyahı */
    color: #9b8ab0 !important; /* Sönük metin moru */
    border: 1px solid #352145 !important;
}

/* Tablolarda satır geçişlerindeki (zebra) hafif parlaklık */
.markdown-body table tr:nth-child(2n) {
    background-color: #1a1025 !important;
}

/* --- KOD BLOKLARI (CODE & PRE) --- */
.markdown-body code {
    background-color: #251735 !important; /* Satır içi (inline) kod arka planı */
    color: #9d50bb !important; /* Neon mor yazım */
    padding: 2px 6px !important;
    border-radius: 4px !important;
}

.markdown-body pre {
    background-color: #0f0a15 !important; /* Büyük kod bloklarının arka planı */
    border: 1px solid #352145 !important; /* Mor çerçeve */
    border-radius: 12px !important;
}

.markdown-body pre code {
    background-color: transparent !important; /* Çakışmayı önlemek için */
    color: #eaddff !important;
    padding: 0 !important;
}
