/* ============================================
   YASIN KARATAŞ HOCA - FLAT DESIGN
   Ferah, Açık ve İkon Tabanlı Tasarım
   ============================================ */

/* CSS Variables - Açık Renk Paleti */
:root {
    /* Primary Colors - Soft & Light */
    --primary: #4A90A4;
    --primary-light: #6BB3C9;
    --primary-lighter: #A8D5E5;
    --primary-pale: #E8F4F8;

    /* Secondary Colors - Warm Gold */
    --secondary: #D4A853;
    --secondary-light: #E8C87B;
    --secondary-pale: #FDF6E3;

    /* Accent Colors */
    --accent: #7CB99F;
    --accent-light: #A5D4BE;
    --accent-pale: #E8F5EE;

    /* Background Colors - Very Light */
    --bg-main: #FAFBFC;
    --bg-white: #FFFFFF;
    --bg-soft: #F5F7FA;
    --bg-cream: #FFFDF8;

    /* Text Colors - Soft & Readable */
    --text-primary: #3D4852;
    --text-secondary: #6B7C8A;
    --text-muted: #9AA5B1;
    --text-light: #B8C4CE;

    /* Border Colors */
    --border-light: #E8ECF0;
    --border-soft: #DEE5ED;

    /* Category Colors - Soft Pastels */
    --cat-fikhi: #E3F2FD;
    --cat-fikhi-text: #1976D2;
    --cat-tefsir: #FFF3E0;
    --cat-tefsir-text: #E65100;
    --cat-akaid: #E8F5E9;
    --cat-akaid-text: #388E3C;
    --cat-ibadet: #F3E5F5;
    --cat-ibadet-text: #7B1FA2;

    /* Shadows - Very Subtle */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* Fonts */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Amiri', serif;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* Arabic Text */
.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-primary);
    direction: rtl;
    text-align: right;
}

/* ============================================
   TOP BAR - Light & Minimal
   ============================================ */

.top-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1050;
}

.top-bar .dropdown-menu {
    z-index: 1060;
}

.top-bar .social-links a {
    color: var(--text-muted);
    margin-right: 1rem;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.top-bar .social-links a:hover {
    color: var(--primary);
}

.top-bar .btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0;
}

.top-bar .btn-link:hover {
    color: var(--primary);
}

.top-bar .btn-outline-light {
    border-color: var(--border-soft);
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 5px 14px;
    background: transparent;
}

.top-bar .btn-outline-light:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
    color: var(--primary);
}

.language-switcher .dropdown-toggle {
    color: var(--text-secondary) !important;
}

/* ============================================
   MAIN HEADER - Clean & Light
   ============================================ */

.main-header {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 3px;
    /* text-transform: uppercase kaldırıldı - Türkçe İ/I sorunu yaratıyor */
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.navbar-nav .nav-link i {
    margin-right: 5px;
    opacity: 0.7;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: var(--primary-pale);
}

.nav-search .form-control {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 0.5rem 1rem;
    background: var(--bg-soft);
}

.nav-search .form-control:focus {
    background: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: none;
}

.nav-search .btn {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* ============================================
   BUTTONS - Soft & Friendly
   ============================================ */

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: #fff;
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-pale);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ============================================
   HERO SECTION - Light & Welcoming
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #B8D8E3 0%, #DCE8EC 40%, #EBE0C5 100%);
    padding: 5rem 0;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    direction: rtl;
}

.hero-icon {
    font-size: 6rem;
    color: var(--primary-lighter);
    opacity: 0.5;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-white);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ============================================
   FLAT CARDS - Icon Based
   ============================================ */

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
    transform: translateY(-2px);
}

/* Article Card - Flat with Icon */
.article-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.article-card .card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
}

.article-card .card-icon.fikhi {
    background: var(--cat-fikhi);
    color: var(--cat-fikhi-text);
}

.article-card .card-icon.tefsir {
    background: var(--cat-tefsir);
    color: var(--cat-tefsir-text);
}

.article-card .card-icon.akaid {
    background: var(--cat-akaid);
    color: var(--cat-akaid-text);
}

.article-card .card-icon.ibadet {
    background: var(--cat-ibadet);
    color: var(--cat-ibadet-text);
}

.article-card .card-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-card .card-category.fikhi {
    background: var(--cat-fikhi);
    color: var(--cat-fikhi-text);
}

.article-card .card-category.tefsir {
    background: var(--cat-tefsir);
    color: var(--cat-tefsir-text);
}

.article-card .card-category.akaid {
    background: var(--cat-akaid);
    color: var(--cat-akaid-text);
}

.article-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.article-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-card .card-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* Fatwa Card - Clean & Minimal */
.fatwa-card {
    border-left: 3px solid var(--secondary);
    padding: 1.5rem;
}

.fatwa-card .badge {
    background: var(--secondary-pale) !important;
    color: var(--secondary) !important;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.fatwa-card .question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.fatwa-card .question i {
    color: var(--primary);
}

.fatwa-card .answer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   VERSE DISPLAY - Elegant & Light
   ============================================ */

.verse-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.verse-arabic {
    font-family: var(--font-arabic);
    font-size: 2rem;
    line-height: 2.2;
    color: var(--text-primary);
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--secondary-pale) 100%);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.translation-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.translation-item:last-child {
    border-bottom: none;
}

.translation-item .lang-flag {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.translation-item .translator {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.translation-item .text {
    margin-top: 0.5rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   VIDEO SECTION - Icon Based
   ============================================ */

.video-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.video-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.video-thumb-wrap {
    position: relative;
    margin-bottom: 0.9rem;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.video-card .play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-normal);
}

.video-card:hover .play-icon {
    background: var(--primary);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h6 {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   FOOTER - Clean & Light
   ============================================ */

.main-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    /* text-transform: uppercase kaldırıldı - Türkçe karakter uyumsuzluğu */
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
    color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.newsletter-form .form-control {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: none;
}

.newsletter-form .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   TWITTER TIMELINE
   ============================================ */

.twitter-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.x-post-list {
    display: grid;
    gap: 0.9rem;
}

.x-post-item {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.9rem;
}

.x-post-text {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.x-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.7rem;
}

/* ============================================
   TTS Button
   ============================================ */

.tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tts-btn:hover {
    background: var(--primary-pale);
    color: var(--primary);
    border-color: var(--primary-light);
}

.tts-btn.playing {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   FLAT STAT BOXES
   ============================================ */

.stat-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.stat-box .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.stat-box .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-light);
    }

    .nav-search {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {

    .top-bar .social-links,
    .top-bar .text-end {
        text-align: center !important;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-arabic {
        font-size: 1.4rem;
    }

    .section {
        padding: 3rem 0;
    }

    .verse-arabic {
        font-size: 1.5rem;
        padding: 1.5rem;
    }

    .article-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}