:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

a:hover {
    color: var(--primary);
    text-decoration: none !important;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    margin-bottom: 1rem;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    opacity: 0.5;
}

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

.breadcrumbs .active {
    color: var(--text-main);
    font-weight: 600;
}

/* Header & Navbar */
.main-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    text-decoration: none !important;
    color: #fff;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    text-decoration: none !important;
}

.nav-links a:hover {
    color: var(--primary);
    text-decoration: none !important;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.chevron-down {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    margin-bottom: 3px;
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff !important;
    transition: var(--transition);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    background: var(--bg-dark);
}

.slider-container {
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 20%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.2));
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 650px;
    padding: 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slider-item.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.slide-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-summary {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 4.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* Fallback Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    border-radius: 2rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Story Detail Page */
.story-hero {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.story-cover {
    width: 300px;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.story-title {
    font-size: 3rem;
    margin: 1rem 0;
}

.story-summary {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-pill:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown.show .chevron-down {
        transform: rotate(-135deg);
        margin-bottom: -2px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .story-hero {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 2rem !important;
    }

    .story-hero img {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto;
    }

    .story-info h1 {
        font-size: 2.2rem !important;
    }

    /* Slider Mobile */
    .hero-slider {
        height: 500px;
    }

    .slide-content {
        padding: 1.5rem;
        text-align: center;
        margin: 0 auto;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-summary {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .slider-nav {
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .slider-dots {
        left: 1.5rem;
        bottom: 1.5rem;
    }

    .slider-nav button {
        width: 40px;
        height: 40px;
    }
}

/* Sharing Buttons */
.share-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn, .fav-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.share-btn.whatsapp:hover {
    color: #25d366;
    border-color: #25d366;
}

.share-btn.twitter:hover {
    color: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}

.share-btn.copy:hover, .fav-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.fav-toggle-btn.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.fav-toggle-btn.active i {
    color: var(--primary);
}

.copy-feedback {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(200%);
    transition: transform 0.3s ease;
    z-index: 1002;
}

.copy-feedback.show {
    transform: translateY(0);
}

.mt-5 {
    margin-top: 5rem;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Description Rich Text Styling */
.rich-text-content {
    line-height: 1.8 !important;
}

.rich-text-content p {
    margin-bottom: 1.5rem !important;
}

.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 1.5rem !important;
    padding-left: 2rem !important;
}

.rich-text-content li {
    margin-bottom: 0.5rem !important;
}

.rich-text-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    margin: 1rem 0 !important;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
    margin: 2.5rem 0 1.25rem !important;
    color: var(--primary) !important;
    line-height: 1.2 !important;
}

/* Okuma tamamlanma animasyonu */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hikaye kartı bölüm sayısı badge */
.chapter-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    transition: var(--transition);
}

.card:hover .chapter-count-badge {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-btn, .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
}

.page-number:hover, .page-btn:not(.disabled):hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.page-number.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.page-number.ellipsis {
    cursor: default;
}

.page-number.ellipsis:hover {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 600px) {
    .page-number:not(.active):not(:first-child):not(:last-child):not(.ellipsis) {
        display: none;
    }
}