@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* =====================
   CSS VARIABLES
===================== */
:root {
    --sidebar-width: 280px;
    --bg: #ffffff;
    --sidebar-bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #888888;
    --text-light: #aaaaaa;
    --accent: #2d4a7a;
    --accent-light: #4a6fa5;
    --border: #e8e8e8;
    --card-bg: #fafafa;
    --hover-bg: #f5f5f5;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Libre Baskerville', Georgia, serif;
    --font-ui: 'DM Sans', sans-serif;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =====================
   LAYOUT
===================== */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =====================
   SIDEBAR
===================== */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo .logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.5px;
    display: block;
    text-decoration: none;
}

.sidebar-logo .logo-subtitle {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
}

.sidebar-nav {
    flex: 1;
    margin-top: 8px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin-bottom: 6px;
}

.sidebar-nav ul li a {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav ul li a::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: var(--text);
}

.sidebar-nav ul li a:hover::before,
.sidebar-nav ul li a.active::before {
    height: 18px;
}

.sidebar-social {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.sidebar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    margin-right: 8px;
}

.sidebar-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(45, 74, 122, 0.05);
}

.sidebar-social a svg {
    width: 16px;
    height: 16px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.sidebar-footer p {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.6;
}

.sidebar-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

/* =====================
   MAIN CONTENT
===================== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 60px 70px;
    max-width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content > * {
    width: 100%;
    max-width: 860px;
}

@media (max-width: 768px) {
    .sidebar-nav {
        margin-top: 24px;
    }
}


.sidebar-overlay {
    pointer-events: none;
}

.sidebar-overlay.active {
    pointer-events: all;
}
.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
}

.sidebar-built-by {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 12px 0;
    transition: all .2s;
}

.sbb-top {
    display: block;
}

.sbb-made {
    font-size: .68rem;
    font-weight: 400;
    letter-spacing: .03em;
    color: var(--text-light);
    text-transform: none;
}

.sbb-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sbb-heart {
    font-size: .7rem;
    color: #e05555;
}

.sbb-name {
    font-family: var(--font-ui);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .2s;
}

.sidebar-built-by:hover .sbb-name {
    color: var(--text);
}

/* Sidebar logosu mobilde gizle */
@media (max-width: 768px) {
    .sidebar-logo {
        display: none;
    }
}
/* Mobilde sidebar logosu gizle */
@media (max-width: 768px) {
    .sidebar-logo {
        display: none;
    }
}

/* Social ikonların border'ını kaldır */
.sidebar-social {
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
}
/* =====================
   HOME PAGE
===================== */
.profile-section {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 32px;
    filter: grayscale(100%);
    border: 6px solid var(--border);
    transition: var(--transition);
}

.profile-photo:hover {
    filter: grayscale(60%);
    border-color: var(--accent);
}

.profile-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    margin: 0 auto 32px;
    border: 6px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 48px;
    font-family: var(--font-display);
    font-style: italic;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.1;
}

.profile-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 12px;
    margin-bottom: 0;
}

.bio-section {
    max-width: 720px;
    margin-bottom: 56px;
}

.bio-section p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.section-heading {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text);
    display: inline-block;
}

.edu-list {
    list-style: none;
    padding: 0;
}

.edu-list li {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    padding: 10px 0 10px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.edu-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* =====================
   YAZILARIM PAGE
===================== */
.page-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 48px;
    line-height: 1.1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 36px;
}

.article-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.article-card:hover {
    text-decoration: none;
    color: inherit;
}

.article-card:hover .article-card-img img {
    transform: scale(1.04);
}

.article-card:hover .article-card-title {
    color: var(--accent);
}

.article-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 6px;
    background: var(--card-bg);
    margin-bottom: 18px;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 40px;
}

.article-card-date {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    display: block;
}

.article-card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.2s;
    margin: 0;
}

/* =====================
   ARTICLE DETAIL PAGE
===================== */
.article-detail-header {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.article-detail-date {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 16px;
}

.article-detail-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0;
}

.article-detail-hero {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(15%);
    margin-bottom: 48px;
}

.article-detail-hero-placeholder {
    width: 100%;
    aspect-ratio: 16/7;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 8px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 60px;
}

.article-detail-body {
    max-width: 680px;
}

.article-detail-body p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 2;
    color: #3a3a3a;
    margin-bottom: 28px;
    text-align: justify;
}

.article-detail-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-detail-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 28px;
    margin: 36px 0;
    background: rgba(45, 74, 122, 0.04);
    border-radius: 0 4px 4px 0;
}

.article-detail-body blockquote p {
    font-style: italic;
    color: var(--accent);
    margin: 0;
    font-size: 17px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

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

.back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* =====================
   ILETISIM PAGE
===================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2px;
}

.contact-item {
    padding: 48px 40px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:last-child {
    border-right: none;
}

.contact-item:hover {
    background: #f0f3f8;
}

.contact-item-label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.contact-item-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.contact-item-value:hover {
    color: var(--accent);
}

.contact-location {
    padding: 48px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.contact-location-label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.contact-location-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    color: var(--text);
}

.contact-form-section {
    margin-top: 64px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
    max-width: 580px;
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 74, 122, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.btn-send {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 16px 40px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send:hover {
    background: var(--accent);
}

/* =====================
   MOBILE TOPBAR
===================== */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mobile-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-style: italic;
    color: var(--text);
    text-decoration: none;
    font-weight: 300;
}

.mobile-menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* =====================
   DIVIDER
===================== */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* =====================
   FADE IN ANIMATION
===================== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.12s; }
.fade-up:nth-child(3) { animation-delay: 0.19s; }
.fade-up:nth-child(4) { animation-delay: 0.26s; }
.fade-up:nth-child(5) { animation-delay: 0.33s; }
.fade-up:nth-child(6) { animation-delay: 0.40s; }

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 992px) {
    .main-content {
        padding: 40px 40px;
    }

    .article-detail-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 180;
        box-shadow: var(--shadow-hover);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 88px 20px 40px;
    }

    .profile-name {
        font-size: 38px;
    }

    .page-title {
        font-size: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .contact-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .contact-item:last-child {
        border-bottom: none;
    }

    .article-detail-title {
        font-size: 28px;
    }

    .profile-photo,
    .profile-photo-placeholder {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 80px 16px 32px;
    }

    .contact-item {
        padding: 32px 24px;
    }

    .contact-location {
        padding: 32px 24px;
    }
}
