:root {
    --bg-overlay: rgba(15, 15, 20, 0.85);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.8);
    --hover-color: #b95cf7e8;
    --font-main: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: #0b0b0f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Image Gradients */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-overlay::before,
.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    width: 45%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.6;
    filter: grayscale(20%);
}

.background-overlay::before {
    left: 0;
    background-image: url('static/lavender.jpg');
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.background-overlay::after {
    right: 0;
    background-image: url('static/lavenders.jpg');
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* YUSUF IPEK STYLE - TOP NAVIGATION */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 100%; /* Sola tam hizalamak için sınır kaldırıldı */
    margin: 0 auto;
    padding: 1rem 3rem; /* Sol tarafta biraz hoş bir boşluk kalması için padding'i az artırdık */
    display: flex;
    justify-content: flex-start;
    /* Aligned left */
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--hover-color);
}

/* YUSUF IPEK STYLE - MAIN CONTENT AREA */
.content-area {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 20px;
    width: 100%;
}

.site-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 3rem 0;
    /* Reduced top padding for tighter fit */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4rem;
}

.site-cover.show {
    display: flex !important; /* JS block olarak eziyor, flex'i korumak için */
}

.cover-logo-text {
    width: 400px;
    margin-bottom: 25px;
    margin-left: auto;
    /* Ortalamak için sağ-sol margin auto eklendi */
    margin-right: auto;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.2));
    position: relative;
    z-index: 2;
    display: block;
    /* Flex'in ezememesi için block yapıldı */
}

.cover-pic {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0b0b0f;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.cover-title {
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.cover-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto; /* Metin bloğunun yatayda tam ortalanması için eklendi */
}

.social-links {
    display: none;
    gap: 1.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.social-links.show {
    display: flex !important; /* filter-item JS sets display:block, override to flex */
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--hover-color);
    transform: translateY(-3px);
}


/* Ana Sayfa Yeni Gönderiler */
.home-posts {
    margin-top: 4rem;
    margin-bottom: 4rem;
    display: none;
    /* Hidden by default until JS shows it */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-posts.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Genişliği artırmak için minmax değeri artırıldı */
    gap: 1.5rem;
}

.post-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem 2rem; /* Yüksekliği azaltmak için dikey padding düşürüldü */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    border-color: var(--hover-color);
    box-shadow: 0 0 15px rgba(185, 92, 247, 0.4);
    transform: scale(1.03);
}

.post-card h3 {
    font-size: 1.25rem;
    font-weight: normal;
    color: #fff;
    margin: 0.5rem 0;
}

/* Post Styling / Feed Makaleleri */
.post {
    margin-bottom: 4rem;
    display: none;
    /* Hidden by default until JS shows it */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
}

.post.yazilar:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.post.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.category {
    font-size: 0.75rem;
    color: var(--hover-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post h2 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.3;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Yazılar Listesi — Yusuf İpek tarzı */
.post-list {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4rem;
}

.post-list.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.post-list-header {
    padding: 2rem 0 2.5rem 0;
}

.post-list-heading {
    font-size: 1.8rem;
    font-weight: normal;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.post-list-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.post-list-item {
    display: flex;
    flex-direction: column;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease, padding-left 0.2s ease;
    gap: 0.4rem;
}

.post-list-item:hover {
    color: #fff;
    padding-left: 6px;
}

.post-list-title {
    font-size: 1.15rem;
    font-weight: normal;
}

.post-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-list-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-list-readtime {
    font-size: 0.8rem;
    color: var(--text-secondary);
}


.excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
    font-size: 0.95rem;
}

.read-more {
    color: var(--hover-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: letter-spacing 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    letter-spacing: 1px;
    opacity: 0.8;
}

.poem-text {
    white-space: pre-line;
    font-style: italic;
    color: var(--text-primary);
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
    margin: 10px 0;
}

.post-img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: filter 0.3s ease;
    cursor: zoom-in;
    margin-top: 10px;
}

/* Fotoğraf Galerisi (Grid Style) */
.photo-gallery {
    display: none; /* Hidden by default until JS filter shows it */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px; /* Daha dengeli bir boşluk */
    margin-bottom: 4rem;
}

.photo-gallery.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1; /* Fotoğrafları kare formunda kırpar, şık görünür */
    object-fit: cover;
    border-radius: 8px; /* Daha modern yuvarlatılmış köşeler */
    border: none;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.gallery-img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 8px 24px rgba(185, 92, 247, 0.25); /* Tema rengine uygun hafif parlama */
}

/* Butterfly Icon */
.butterfly-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.full-width-center {
    width: 100%;
}

.butterfly-icon {
    width: 30px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.butterfly-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--hover-color);
}

/* ARTICLE PAGE SPECIFIC STYLES */
.article-page .content-area {
    max-width: 700px;
    padding-top: 5rem;
}

.article-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 1rem 0;
    font-weight: normal;
}

.full-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.full-content p {
    margin-bottom: 1.5rem;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
    pointer-events: none;
}

/* Responsive: Mobile View */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .site-cover {
        padding: 2rem 0 3rem 0;
        margin-bottom: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Mobilde biraz daha küçük kareler */
        gap: 12px;
    }
}