/* ==========================================================================
   Fikret Demir - Ultra Premium & Vibrant Theme Styles
   ========================================================================== */

/* --- CSS Variables --- */
:root {
    /* Vibrant yet elegant color palette */
    --color-bg: #090a0f; 
    --color-bg-light: #12141c;
    --color-bg-alt: #1a1525; /* Subtle purple tint */
    
    --color-text: #e2e8f0;
    --color-text-muted: #a0aec0;
    
    --color-primary: #3b82f6; /* Vibrant blue */
    --color-secondary: #8b5cf6; /* Vibrant purple */
    --color-accent: #10b981; /* Emerald green */
    
    --color-gradient-1: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --color-gradient-2: linear-gradient(135deg, var(--color-secondary), #ec4899);
    
    --color-glass-bg: rgba(18, 20, 28, 0.75);
    --color-glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Raleway', sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Basics --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Utilities --- */
.glassmorphism {
    background: var(--color-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: var(--color-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 100;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

section {
    padding: 8rem 0;
    position: relative;
}

/* --- Divider Shapes --- */
.divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.divider-bottom svg, .divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.divider-shape-fill {
    fill: var(--color-bg-light);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(18, 20, 28, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 400;
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-navigation a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-gradient-1);
    transition: var(--transition);
}

.main-navigation a:hover {
    color: #fff;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul.sub-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 240px;
    background: rgba(18, 20, 28, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 100;
}

.main-navigation ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul.sub-menu a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.85rem;
    color: var(--color-text);
}

.main-navigation ul ul.sub-menu a::after {
    display: none;
}

.main-navigation ul ul.sub-menu a:hover {
    color: var(--color-primary);
    background: rgba(255,255,255,0.03);
}

.main-navigation ul ul.sub-menu li {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, rgba(9, 10, 15, 0) 50%),
                radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.15) 0%, rgba(9, 10, 15, 0) 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
}

.hero-image-wrapper {
    flex-shrink: 0;
    width: 400px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    background: var(--color-gradient-1);
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 1s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.hero-text {
    flex-grow: 1;
}

.hero-title {
    font-size: 5.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1;
    font-weight: 100;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--color-gradient-1);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    font-family: var(--font-heading);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

/* --- About Section --- */
.about-section {
    background-color: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1.8rem;
    color: #cbd5e1;
}

.about-highlight {
    padding: 3rem;
    text-align: center;
    margin: 0 auto 5rem auto;
    max-width: 900px;
    border-left: 4px solid var(--color-primary);
}

.about-highlight p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 300;
}

.about-highlight .highlight-text {
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 2rem;
}

.about-poem blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 100;
    color: #fff;
    line-height: 1.6;
    text-align: center;
}

.about-poem cite {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-top: 2rem;
}

/* --- Publications Section --- */
.publications-section {
    background-color: var(--color-bg-alt); /* slightly purple/dark */
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.publication-card {
    display: block;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
}

.publication-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--color-gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.publication-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-10px);
}

.publication-card:hover::before {
    transform: scaleX(1);
}

.pub-content h3 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 400;
}

.pub-content p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.pub-link-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pub-link-text::after {
    content: '→';
    transition: transform 0.3s ease;
}

.publication-card:hover .pub-link-text::after {
    transform: translateX(8px);
}

/* --- Book Section --- */
.book-section {
    background-color: var(--color-bg);
}

.flipbook-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 1rem;
}

/* --- Pages General (Contact, Page) --- */
.page-header {
    padding: 12rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.1) 0%, rgba(9, 10, 15, 0) 60%);
}

.page-title {
    font-size: 4rem;
    font-weight: 100;
    color: #fff;
}

.page-content {
    max-width: 800px;
    margin: 0 auto 6rem;
    font-size: 1.15rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    padding: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.contact-form {
    padding: 3rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.05);
}

.contact-form button {
    cursor: pointer;
    border: none;
}

/* --- Footer --- */
.site-footer {
    background-color: #050608;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-info p {
    color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
    .hero-content { flex-direction: column; text-align: center; margin-top: 5rem; }
}
@media (max-width: 768px) {
    .site-header { width: 95%; top: 10px; padding: 0.5rem 1.5rem; }
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; z-index: 1001; }
    .hamburger { display: block; width: 25px; height: 2px; background: #fff; transition: var(--transition); }
    .main-navigation ul {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(18,20,28,0.95); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; padding-left: 3rem;
        transition: right 0.5s ease;
    }
    .main-navigation.toggled ul { right: 0; }

    .main-navigation ul ul.sub-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 1.5rem;
        display: none;
        margin-top: 1rem;
    }
    
    .main-navigation ul li:hover > ul.sub-menu,
    .main-navigation ul li:active > ul.sub-menu {
        display: flex;
    }
    
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
    .hero-image-wrapper { width: 300px; height: 400px; }
}

/* --- Single Post Styles --- */
.post-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 50px;
    margin-bottom: 4rem;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    filter: blur(5px);
    transform: scale(1.05);
}

.fallback-bg {
    background: var(--color-gradient-1);
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(9, 10, 15, 0.4) 0%, rgba(9, 10, 15, 1) 100%);
    z-index: -1;
}

.post-hero-content {
    text-align: center;
    max-width: 900px;
}

.post-meta-top {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.post-meta-top a {
    color: var(--color-primary);
}

.post-title {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 100;
    line-height: 1.2;
}

.post-meta-bottom {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.post-separator {
    margin: 0 10px;
    opacity: 0.5;
}

.post-content-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.post-share-sidebar {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 120px;
    height: max-content;
}

.share-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 10px 0;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateX(5px);
}

.post-content {
    flex-grow: 1;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.post-content h2, .post-content h3 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-content p {
    margin-bottom: 1.8rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 2rem;
    margin: 3rem 0;
    background: rgba(255,255,255,0.02);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.4rem;
    color: #fff;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 6rem auto;
    max-width: 1100px;
}

.nav-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 200px;
    background-color: var(--color-bg-light);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--color-primary);
}

.nav-card.prev-card { text-align: left; }
.nav-card.next-card { text-align: right; }

.nav-direction {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.nav-title {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

@media (max-width: 992px) {
    .post-content-wrapper {
        flex-direction: column;
    }
    .post-share-sidebar {
        flex-direction: row;
        width: 100%;
        position: static;
        margin-bottom: 2rem;
        justify-content: flex-start;
    }
    .share-title {
        writing-mode: horizontal-tb;
        transform: none;
        display: flex;
        align-items: center;
        margin: 0 1rem 0 0;
        padding: 0;
    }
    .share-btn:hover { transform: translateY(-5px); }
    .post-title { font-size: 2.5rem; }
    .post-navigation { grid-template-columns: 1fr; }
}

/* --- Blog / Index Styles --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: var(--color-primary);
}

.post-card-img-link {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.post-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-card-title a {
    color: #fff;
}

.post-card-title a:hover {
    color: var(--color-primary);
}

.post-card-excerpt {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    margin-top: auto;
}

.post-views {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.read-more-link {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

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

.nav-links a, .nav-links span {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--color-text);
    transition: var(--transition);
}

.nav-links .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* --- Contact Section Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 4rem auto 0;
}

.contact-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 24px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--color-primary);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--color-primary);
}

/* --- Minimal Contact Chips (Ana Sayfa) --- */
.minimal-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--color-text);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}
