/**
 * bugrahan.com.tr — Netflix-Inspired Dark Theme
 * Front-end CSS
 */

/* ============================================
   Google Fonts
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --bg-primary: #141414;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-card-hover: #252525;
    --bg-overlay: rgba(0, 0, 0, 0.65);

    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;

    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-dark: #b20710;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    --container: 1400px;
    --header-height: 68px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 4%;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.site-header.scrolled {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header-logo img {
    height: 34px;
    width: auto;
}

.header-logo .logo-text {
    background: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 620px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.15) 0%,
            rgba(10, 10, 10, 0.45) 35%,
            rgba(10, 10, 10, 0.85) 75%,
            var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: calc(var(--header-height) + 50px) 0 50px;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 70px;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: visible;
    aspect-ratio: 16 / 12;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    transform: translateX(-50%) scale(0.72);
    opacity: 0;
    transition: all 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    pointer-events: none;
    filter: brightness(0.3) blur(1px);
}

.carousel-slide.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
    filter: brightness(1) blur(0);
}

.carousel-slide.prev {
    transform: translateX(-118%) scale(0.78);
    opacity: 0.55;
    z-index: 3;
    filter: brightness(0.3);
}

.carousel-slide.next {
    transform: translateX(18%) scale(0.78);
    opacity: 0.55;
    z-index: 3;
    filter: brightness(0.3);
}

/* Kart */
.carousel-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.active .carousel-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.carousel-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.active .carousel-card:hover .carousel-thumb img {
    transform: scale(1.03);
}

.carousel-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 70%);
    transition: opacity 0.35s ease;
}

.active .carousel-card:hover .carousel-play-icon {
    opacity: 1;
}

.carousel-play-icon i {
    font-size: 3.2rem;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.4));
}

.carousel-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}

/* Bilgi alanı */
.carousel-info {
    padding: 16px 20px 18px;
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(28, 28, 28, 0.95) 100%);
}

.carousel-cat {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.carousel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.carousel-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Oklar */
.carousel-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.35);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    padding: 40px 0 20px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent);
    font-size: 0.9em;
}

.section-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: var(--text-primary);
}

/* ============================================
   Documentary Row (Netflix style horizontal scroll)
   ============================================ */
.doc-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doc-row::-webkit-scrollbar {
    display: none;
}

.doc-card {
    flex: 0 0 calc(20% - 8px);
    min-width: 220px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s 0.35s;
    cursor: pointer;
}

.doc-card:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease, z-index 0s;
}

.doc-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.doc-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doc-card:hover .doc-card-thumb img {
    filter: brightness(0.6);
}

.doc-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.doc-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-card:hover .doc-card-play {
    opacity: 1;
}

.doc-card-play i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.doc-card-info {
    padding: 10px 12px;
}

.doc-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.doc-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.doc-card-meta .views {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.about-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 0 40px rgba(229, 9, 20, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.about-name {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 12px;
}

/* ============================================
   Blog Grid
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.blog-card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-body {
    padding: 20px;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 5px 0;
}

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    .doc-card {
        flex: 0 0 calc(25% - 8px);
    }
}

@media (max-width: 968px) {
    .carousel {
        max-width: 700px;
        padding: 0 60px;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
        width: 200px;
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .doc-card {
        flex: 0 0 calc(33.333% - 8px);
    }
}

/* Mobil menü overlay — masaüstünde gizle */
.mobile-menu-overlay {
    display: none;
}

@media (max-width: 768px) {
    .header-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Mobil Menü Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #0a0a0a;
        z-index: 99999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
    }

    .mobile-menu-overlay.open {
        display: flex;
    }

    .mobile-menu-close {
        position: absolute;
        top: 18px;
        right: 18px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .mobile-menu-nav a {
        color: var(--text-secondary);
        font-size: 1.4rem;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
        position: relative;
    }

    .mobile-menu-nav a.active {
        color: #fff;
    }

    .mobile-menu-nav a.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: var(--accent);
    }

    .hero-section {
        min-height: 380px;
    }

    .hero-content {
        padding: calc(var(--header-height) + 30px) 0 36px;
    }

    .carousel {
        max-width: 100%;
        padding: 0 50px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .carousel-title {
        font-size: 0.95rem;
    }

    .carousel-info {
        padding: 12px 14px 14px;
    }

    .carousel-play-icon i {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.15rem;
    }

    .doc-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 160px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 320px;
    }

    .carousel {
        padding: 0 40px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .carousel-title {
        font-size: 0.82rem;
    }

    .carousel-info {
        padding: 10px 12px 12px;
    }

    .carousel-cat {
        font-size: 0.6rem;
    }

    .carousel-meta {
        font-size: 0.7rem;
    }

    .carousel-dots {
        margin-top: 16px;
        gap: 6px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-dot.active {
        width: 22px;
    }
}

/* ============================================
   Scrollbar (global)
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Utility
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}