/* ==========================================================================
   CSS VARIABLES & GLOBAL DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette (APCA Contrast & Sighted Wow-Factor) */
    --clr-bg: hsl(222, 25%, 5%);              /* Deeper dark midnight background */
    --clr-bg-card: hsl(222, 20%, 9%);         /* Deep space cards */
    --clr-border: hsl(222, 15%, 15%);         /* Subtle border line */
    --clr-border-hover: hsl(222, 15%, 23%);   /* Focus/hover border */
    
    --clr-primary: hsl(217, 91%, 60%);        /* High-luminance royal blue */
    --clr-secondary: hsl(263, 85%, 68%);      /* Luminous electric purple */
    --clr-accent: hsl(142, 70%, 45%);         /* Vivid forest green */
    --clr-focus: hsl(38, 95%, 52%);           /* High-visibility amber focus ring */
    
    --clr-text-main: hsl(220, 20%, 97%);      /* Pure off-white, no glare */
    --clr-text-muted: hsl(220, 12%, 78%);     /* High contrast readability (APCA compliant) */
    --clr-text-dark: hsl(220, 10%, 65%);      /* Readable metadata (APCA compliant) */
    
    /* Typography */
    --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions & Shadows */
    --tr-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.55);
}

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

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

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img, svg {
    display: block;
    max-width: 100%;
}

code, pre {
    font-family: 'Courier New', Courier, monospace;
}

/* ==========================================================================
   WCAG ERİŞİLEBİLİRLİK STANDARTLARI (ACCESSIBILITY)
   ========================================================================== */
/* Skip Link (Ana İçeriğe Atla) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background-color: var(--clr-primary);
    color: #fff;
    padding: 12px 24px;
    z-index: 2000;
    transition: top 0.2s ease;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid #fff;
}

.skip-link:focus {
    top: 20px;
    outline: 3px solid var(--clr-focus) !important;
    outline-offset: 2px;
}

/* Yüksek Görünürlüklü Odaklanma Halkası (WCAG AAA) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--clr-focus) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

/* Ekran Okuyucular İçin Gizli İçerik Sınıfı */
.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;
}

/* ==========================================================================
   LAYOUT CONTAINERS & TYPOGRAPHY
   ========================================================================== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   NAVBAR (GLASSMORPHISM & ACCESSIBLE NAV)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    background-color: rgba(10, 12, 18, 0.85);
    transition: var(--tr-smooth);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-ext {
    color: var(--clr-primary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--tr-fast);
}

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

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr-smooth);
    border: none;
    font-family: inherit;
    letter-spacing: -0.1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--clr-border-hover);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.nav-btn {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--clr-primary);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 6px 16px !important;
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background-color: var(--clr-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--clr-text-main);
    transition: var(--tr-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    background: radial-gradient(circle at 10% 20%, hsla(217, 91%, 60%, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, hsla(263, 85%, 68%, 0.03) 0%, transparent 40%);
}

.hero-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-sub {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.hero-role {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-dark);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Profile Photo Frame */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    width: 320px;
    height: 380px;
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--tr-smooth);
    position: relative;
}

.profile-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-combine: dest-out;
            mask-combine: exclude;
    opacity: 0.15;
    transition: var(--tr-smooth);
}

.profile-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.profile-frame:hover::before {
    opacity: 0.8;
}

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

.profile-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-dark);
    gap: 16px;
    padding: 40px;
    text-align: center;
}

.profile-icon {
    width: 80px;
    height: 80px;
    color: var(--clr-border-hover);
}

.placeholder-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   MANIFESTO SECTION
   ========================================================================== */
.manifesto-section {
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    text-align: center;
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 24px;
}

.manifesto-text {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: flex-start;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: var(--tr-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--clr-primary), var(--clr-secondary));
    opacity: 0;
    transition: var(--tr-smooth);
}

.stat-card:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    color: var(--clr-text-main);
}

.stat-desc {
    font-size: 0.88rem;
    color: var(--clr-text-dark);
    line-height: 1.5;
}

/* ==========================================================================
   ACTIVITIES SECTION
   ========================================================================== */
.activities-section {
    background-color: var(--clr-bg);
    border-top: 1px solid var(--clr-border);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.activity-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--clr-border);
    padding: 36px 28px;
    border-radius: 12px;
    transition: var(--tr-smooth);
    box-shadow: var(--shadow-sm);
}

.activity-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.02);
}

.activity-icon-wrapper {
    width: 44px;
    height: 44px;
    color: var(--clr-primary);
    margin-bottom: 20px;
    transition: var(--tr-smooth);
}

.activity-card:hover .activity-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
    color: var(--clr-secondary);
}

.activity-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.activity-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   BLOG PORTAL STYLES (INDEX & PORTAL)
   ========================================================================== */
.recent-posts-section, .blog-list-section {
    border-top: 1px solid var(--clr-border);
}

.posts-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--tr-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--clr-text-dark);
    margin-bottom: 14px;
}

.post-category {
    color: var(--clr-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-info h3, .post-info h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.post-info h3 a:hover, .post-info h2 a:hover {
    color: var(--clr-primary);
}

.post-info p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.post-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.post-link:hover {
    color: hsl(212, 90%, 50%);
}

.post-link-disabled {
    font-size: 0.85rem;
    color: var(--clr-text-dark);
    font-style: italic;
}

.section-actions {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   BLOG PORTAL PAGES SPECIFIC (blog.html)
   ========================================================================== */
.blog-header-section {
    padding-top: 140px;
    background-color: rgba(255, 255, 255, 0.01);
    text-align: center;
    border-bottom: 1px solid var(--clr-border);
}

.page-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.filter-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    background-color: var(--clr-bg-card);
    padding: 18px 28px;
    border-radius: 12px;
    border: 1px solid var(--clr-border);
}

.search-box input {
    width: 280px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: 12px 18px;
    color: var(--clr-text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--tr-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.category-filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    background-color: transparent;
    color: var(--clr-text-muted);
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--tr-fast);
}

.filter-btn:hover {
    color: var(--clr-text-main);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   ARTICLE READING TEMPLATE (blog-detay.html)
   ========================================================================== */
.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 24px 80px 24px;
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 24px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--clr-text-dark);
    margin-bottom: 12px;
}

.article-category {
    color: var(--clr-primary);
    font-weight: 600;
}

.article-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--clr-text-main);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 36px 0 16px 0;
    letter-spacing: -0.3px;
}

.article-content ul, .article-content ol {
    margin: 0 0 24px 20px;
}

.article-content li {
    margin-bottom: 8px;
    color: var(--clr-text-muted);
}

.article-content em {
    color: var(--clr-text-muted);
}

.article-content strong {
    color: var(--clr-text-main);
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--clr-border);
    margin: 40px 0;
}

/* References styling (WCAG accessible list) */
.references-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.references-section ol {
    margin-left: 20px;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
}

.references-section li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.references-section a {
    color: var(--clr-primary);
    word-break: break-all;
}

.references-section a:hover {
    text-decoration: underline;
}

.article-footer-nav {
    margin-top: 60px;
    border-top: 1px solid var(--clr-border);
    padding-top: 30px;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    border-top: 1px solid var(--clr-border);
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 30px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
}

.info-item a:hover {
    color: var(--clr-primary);
}

/* Contact Form */
.contact-form {
    background-color: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--clr-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--clr-text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--tr-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--clr-border);
    background-color: rgba(10, 12, 18, 0.6);
    padding: 30px 0;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--clr-text-dark);
    font-size: 0.85rem;
}

.f-links-network {
    display: flex;
    gap: 16px;
}

.f-links-network a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
}

.f-links-network a:hover {
    color: var(--clr-primary) !important;
    border-color: var(--clr-primary) !important;
    transform: translateY(-2px);
}

.f-icon-svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--clr-bg);
        flex-direction: column;
        padding: 40px 24px;
        gap: 20px;
        transition: var(--tr-smooth);
        border-top: 1px solid var(--clr-border);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .category-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   YOUTUBE GALLERY & ACCESSIBLE VIDEO PLAYER
   ========================================================================== */
.videos-section {
    padding: 80px 0;
    background-color: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
}

.playlist-item-btn {
    font-family: inherit;
}

.playlist-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.playlist-item-btn.active {
    border-color: var(--clr-primary) !important;
    background-color: rgba(37, 99, 235, 0.06) !important;
}

@media (max-width: 900px) {
    .videos-layout {
        grid-template-columns: 1fr !important;
    }
    .videos-sidebar {
        max-height: none !important;
    }
}

/* ==========================================================================
   MODAL WINDOW OVERLAYS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.25s ease-out;
}

.modal-content {
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    transition: var(--tr-fast);
}
.modal-close-btn:hover {
    color: var(--clr-text-main) !important;
    transform: scale(1.1);
}

/* ==========================================================================
   TEXT TO SPEECH (TTS) PLAYER
   ========================================================================== */
.tts-player-container {
    box-shadow: var(--shadow-sm);
    transition: var(--tr-smooth);
}
.tts-player-container:hover {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   COMMENTS & FEEDBACK STYLES
   ========================================================================== */
.comment-card {
    transition: var(--tr-smooth);
}
.comment-card:hover {
    border-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

kbd {
    box-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

/* ==========================================================================
   OS THEME & SYSTEM LEVEL ACCESSIBILITY PREFERENCES
   ========================================================================== */

/* 1. Doğal Açık Tema Tercihi (prefers-color-scheme: light) */
@media (prefers-color-scheme: light) {
    :root {
        --clr-bg: hsl(220, 25%, 97%);
        --clr-bg-card: hsl(220, 20%, 92%);
        --clr-text-main: hsl(220, 25%, 10%);
        --clr-text-muted: hsl(220, 15%, 25%);
        --clr-text-dark: hsl(220, 10%, 45%);
        --clr-border: hsl(220, 15%, 83%);
        --clr-bg-nav: rgba(243, 244, 246, 0.85);
    }
    body {
        background-color: var(--clr-bg);
        color: var(--clr-text-muted);
    }
    .gradient-text {
        background: linear-gradient(135deg, hsl(212, 90%, 45%), hsl(220, 20%, 15%));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .navbar {
        background-color: var(--clr-bg-nav);
        border-bottom: 1px solid var(--clr-border);
    }
    .nav-link {
        color: var(--clr-text-muted) !important;
    }
    .nav-link.active, .nav-link:hover {
        color: var(--clr-primary) !important;
    }
    .stat-card {
        background-color: rgba(0, 0, 0, 0.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
    }
    .about-stats {
        background-color: rgba(0, 0, 0, 0.01) !important;
    }
}

/* 2. Doğal Yüksek Kontrast Tercihi (prefers-contrast: more) */
@media (prefers-contrast: more) {
    :root {
        --clr-primary: hsl(212, 100%, 45%);
        --clr-border: hsl(0, 0%, 100%) !important;
        --clr-text-main: hsl(0, 0%, 100%) !important;
        --clr-text-muted: hsl(0, 0%, 92%) !important;
    }
    body {
        background-color: #000000 !important;
        color: #ffffff !important;
    }
    input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
        outline: 4px solid #00ff00 !important;
        outline-offset: 4px !important;
    }
    .btn-primary {
        background-color: #00ff00 !important;
        color: #000000 !important;
        font-weight: 900 !important;
    }
    .btn-secondary {
        background-color: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
    }
    .activity-card, .comment-card, .testimonial-card, .panel-card {
        border: 2px solid #ffffff !important;
        background: #000000 !important;
    }
}
