:root {
    --bs-primary: #74277f;
    --bs-primary-rgb: 116, 39, 127;
    --bs-primary-bg-subtle: #ffd6fd;
    --bs-secondary: #a13e3c;
    --bs-tertiary-bg: #f5f2f7;
    --bs-body-font-family: 'Inter', sans-serif;
    --headline-font: 'Plus Jakarta Sans', sans-serif;
    --maternal-purple: #74277f;
    --maternal-soft-purple: #8f4199;
    --maternal-pink: #fe8580;
    --surface: #fbf8fd;
}

body {
    background-color: var(--surface);
    font-family: var(--bs-body-font-family);
    color: #1b1b1f;
    overflow-x: hidden;
}

.maternal-glow {
    background: radial-gradient(circle at top right, rgba(254, 133, 128, 0.08), transparent),
    radial-gradient(circle at bottom left, rgba(116, 39, 127, 0.05), transparent);
}

h1, h2, h3, h4, h5, .font-headline {
    font-family: var(--headline-font);
}

.navbar-glass {
    background: rgba(251, 248, 253, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(116, 39, 127, 0.05);
    height: 80px;
}

.nav-search-inline {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 28px;
}

.nav-search-trigger,
.nav-search-close {
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-search-inline-panel {
    width: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(116, 39, 127, 0.18);
    border-radius: 999px;
    padding: 0;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
}

.nav-search-input {
    border: none;
    box-shadow: none !important;
    background: transparent;
    min-width: 0;
    font-size: 0.875rem;
    padding: 0.35rem 0.1rem 0.35rem 0.65rem;
}

.nav-search-input::placeholder {
    color: #7e7280;
}

.nav-search-close {
    opacity: 0;
    pointer-events: none;
    font-size: 0.875rem;
}

.nav-search-inline.is-open .nav-search-trigger {
    display: none;
}

.nav-search-inline.is-open .nav-search-inline-panel {
    width: clamp(140px, 38vw, 260px);
    opacity: 1;
    pointer-events: auto;
    padding: 0.2rem 0.5rem;
}

.nav-search-inline.is-open .nav-search-close {
    opacity: 1;
    pointer-events: auto;
}

.brand-logo {
    color: var(--maternal-purple);
    font-weight: 800;
    font-style: italic;
    font-family: var(--headline-font);
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4f434e !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--maternal-purple) !important;
}

.nav-link.active {
    font-weight: 700;
    border-bottom: 2px solid var(--maternal-purple);
}

.btn-maternal-primary {
    background-color: var(--maternal-purple);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-maternal-primary:hover {
    background-color: var(--maternal-soft-purple);
    color: white;
    transform: scale(1.05);
}

.rounded-xl { border-radius: 1.5rem !important; }
.rounded-3xl { border-radius: 2.5rem !important; }

.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background: rgba(116, 39, 127, 0.05);
    filter: blur(40px);
    border-radius: 3rem;
    z-index: -1;
}

.feature-card {
    background: white;
    border: none;
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(116, 39, 127, 0.06);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(116, 39, 127, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: var(--maternal-purple);
    color: white;
}

.shop-banner {
    background: var(--maternal-purple);
    border-radius: 3rem;
    padding: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.doctor-card img {
    height: 400px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.doctor-card:hover img {
    filter: grayscale(0%);
}

.blog-card {
    background: white;
    border: none;
    border-radius: 2rem;
    overflow: hidden;
    height: 100%;
}

.blog-img-hover {
    overflow: hidden;
}

.blog-img-hover img {
    transition: transform 0.5s;
}

.blog-card:hover img {
    transform: scale(1.1);
}

.badge-ai {
    background: #66ff8e;
    color: #002109;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.live-tag {
    color: #ba1a1a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.mobile-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    box-shadow: 0 -10px 30px rgba(116, 39, 127, 0.08);
}

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 768px) {
    .navbar-glass { height: auto; padding: 1rem 0; }
    .nav-search-inline.is-open .nav-search-inline-panel { width: clamp(130px, 52vw, 210px); }
    .hero-title { font-size: 2.5rem !important; }
    .shop-banner { padding: 2rem; border-radius: 2rem; }
}

/* Doktor Paneli Styles */
.sidebar { width: 280px; position: fixed; top: 80px; bottom: 0; overflow-y: auto; background-color: #fbf8fd; border-right: 1px solid #eae7ec; z-index: 999; display: flex; flex-direction: column; }
.panel-main { margin-left: 280px; padding: 2rem; min-height: calc(100vh - 80px); }
@media (max-width: 991.98px) { .sidebar { display: none !important; } .panel-main { margin-left: 0; } }
.nav-link-panel.active-panel { background-color: #f3e8f8; color: #74277f !important; font-weight: 600; border-radius: 0.75rem; }
.nav-link-panel.active-panel .material-symbols-outlined { color: #74277f; }
.nav-link-panel { color: #5f545f; padding: 0.8rem 1.2rem; border-radius: 0.75rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 1rem; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.nav-link-panel .material-symbols-outlined { color: #5f545f; transition: all 0.2s; }
.nav-link-panel:hover:not(.active-panel) { background-color: rgba(116, 39, 127, 0.05); color: #74277f; }
.nav-link-panel:hover:not(.active-panel) .material-symbols-outlined { color: #74277f; }
.sidebar-title { color: #74277f; font-weight: 700; font-size: 1.15rem; margin-bottom: 0; }

/* Sidebar Styles */
.sidebar { width: 280px; position: fixed; top: 80px; bottom: 0; overflow-y: auto; background-color: #fbf8fd; border-right: 1px solid #eae7ec; z-index: 999; display: flex; flex-direction: column; }
.panel-main { margin-left: 280px; padding: 2rem; min-height: calc(100vh - 80px); }
@media (max-width: 991.98px) { .sidebar { display: none !important; } .panel-main { margin-left: 0; } }
.nav-link-panel.active-panel { background-color: #f3e8f8; color: #74277f !important; font-weight: 600; border-radius: 0.75rem; }
.nav-link-panel.active-panel .material-symbols-outlined { color: #74277f; }
.nav-link-panel { color: #5f545f; padding: 0.8rem 1.2rem; border-radius: 0.75rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 1rem; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.nav-link-panel .material-symbols-outlined { color: #5f545f; transition: all 0.2s; }
.nav-link-panel:hover:not(.active-panel) { background-color: rgba(116, 39, 127, 0.05); color: #74277f; }
.nav-link-panel:hover:not(.active-panel) .material-symbols-outlined { color: #74277f; }
.sidebar-title { color: #74277f; font-weight: 700; font-size: 1.15rem; margin-bottom: 0; }


/* KURSLAR CSS EKLENTILERI */
/* Category Pills */
        .btn-category {
            border-radius: 50px;
            padding: 0.5rem 1.5rem;
            font-weight: 600;
            font-size: 0.875rem;
            white-space: nowrap;
            border: none;
            background-color: #f5f2f7;
            color: var(--on-surface-variant);
            margin-right: 0.5rem;
            transition: all 0.3s ease;
        }

        .btn-category.active {
            background-color: var(--primary-color);
            color: white;
        }

        /* Bento Cards */
        .card-learning {
            border: none;
            border-radius: 1.25rem;
            box-shadow: 0 20px 40px rgba(116, 39, 127, 0.04);
            overflow: hidden;
            background-color: white;
        }

        .card-ai-guide {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-container));
            color: white;
            border: none;
            border-radius: 1.25rem;
        }

        /* Horizontal Scroll Sections */
        .horizontal-scroll {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 1.5rem;
            padding-bottom: 1rem;
            scrollbar-width: none;
        }

        .horizontal-scroll::-webkit-scrollbar {
            display: none;
        }

        .course-card {
            flex: 0 0 288px;
            border: none;
            border-radius: 1rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.02);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .course-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .course-card .card-img-top {
            height: 160px;
            object-fit: cover;
            border-radius: 1rem 1rem 0 0;
        }

        /* Bottom Nav */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            border-top-left-radius: 1.5rem;
            border-top-right-radius: 1.5rem;
            display: flex;
            justify-content: space-around;
            padding: 0.75rem 1rem;
            box-shadow: 0 -10px 30px rgba(116, 39, 127, 0.04);
            z-index: 1000;
        }

        .nav-item-custom {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(27, 27, 31, 0.5);
            text-decoration: none;
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .nav-item-custom.active {
            color: white;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-container));
            padding: 0.5rem 1.25rem;
            border-radius: 1.5rem;
        }

        /* FAB */
        .fab {
            position: fixed;
            right: 1.5rem;
            bottom: 6rem;
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-container));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 20px rgba(116, 39, 127, 0.3);
            border: none;
            z-index: 900;
        }

        .badge-lesson {
            background-color: rgba(255, 255, 255, 0.9);
            color: var(--primary-color);
            font-size: 10px;
            font-weight: 800;
            padding: 4px 8px;
            border-radius: 8px;
        }

        .progress-custom {
            height: 8px;
            border-radius: 4px;
            background-color: var(--surface-container-high);
        }

        .progress-bar-custom {
            background: linear-gradient(to right, var(--primary-color), var(--primary-container));
            border-radius: 4px;
        }

/* Auth pages */
.auth-main { padding-top: 120px; }
.auth-main-tall { padding-top: 120px; padding-bottom: 60px; }
.auth-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-primary-bg-subtle);
    color: var(--maternal-purple);
    border-radius: 50%;
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
}
.pwd-toggle-btn { z-index: 10; }
.role-lead { max-width: 600px; }
.role-card { transition: transform 0.3s; cursor: pointer; }
.role-card:hover { transform: scale(1.02); box-shadow: 0 12px 30px rgba(116, 39, 127, 0.08); }
.role-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.role-icon-hasta { background-color: #ffd6fd; }
.role-icon-doktor { background-color: #ffdad7; }
.role-icon-hemsire { background-color: #e0f2fe; }
.role-icon-symbol { font-size: 40px; }
.role-icon-symbol-doktor { color: #a13e3c; }
.role-arrow-doktor { color: #a13e3c; }
.panel-fab {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 100px;
    right: 1.5rem;
    background: linear-gradient(135deg, #74277f, #8f4199);
    border: none;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(116, 39, 127, 0.25);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-wrap { padding-top: 80px; }
.letter-spaced { letter-spacing: 1px; }
.badge-small { font-size: 0.65rem; }
.progress-maternal { height: 12px; border-radius: 1rem; background-color: #f0edf2; }
.progress-bar-maternal { background: linear-gradient(90deg, #fe8580, #74277f); border-radius: 1rem; width: 0; transition: width 0.4s ease; }
.hero-bubble {
    width: 200px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-bubble-icon { font-size: 96px; font-variation-settings: 'FILL' 1; }
.tip-bg-icon { position: absolute; right: 0; bottom: 0; opacity: 0.25; font-size: 80px; }
.note-save-btn { background-color: rgba(116, 39, 127, 0.08); }
.lab-pre { white-space: pre-wrap; word-break: break-word; }

.icon-rounded {
    width: 40px; height: 40px;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-rounded .material-symbols-outlined { font-size: 22px; }
.icon-rounded-lg {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-rounded-primary { background-color: rgba(116, 39, 127, 0.1); color: #74277f; }
.icon-rounded-success { background-color: rgba(34, 197, 94, 0.12); color: #15803d; }
.icon-rounded-info { background-color: rgba(14, 165, 233, 0.12); color: #0369a1; }
.icon-rounded-warning { background-color: rgba(245, 158, 11, 0.15); color: #b45309; }
.icon-rounded-danger { background-color: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.time-col { width: 80px; }
.appt-row + .appt-row { border-top: 1px solid #eee; }
.select-patient, .select-status { width: auto; min-width: 220px; }
.paytr-iframe { width: 100%; min-height: 700px; border: 0; }

/* Ana sayfa kartları */
.hero-badge { letter-spacing: 1px; font-size: 0.75rem; }
.home-hero-fallback { aspect-ratio: 1; }
.home-course-img-wrap { height: 220px; }
.home-course-img { object-fit: cover; }
.home-blog-img-wrap { height: 200px; }
.home-blog-img { object-fit: cover; height: 100%; }

/* Marka */
.brand-logo-img { max-height: 44px; width: auto; }
.social-btn { width: 36px; height: 36px; }
.mobile-nav-label { font-size: 10px; }

/* Kurs detayı */
.course-sidebar { position: sticky; top: 130px; }
.lesson-video { max-width: 100%; max-height: 600px; background: #000; }
.lesson-link.active { font-weight: 600; }
.lesson-link:hover { background: rgba(116, 39, 127, 0.05); }

/* Blog */
.hero-blog { background: linear-gradient(135deg, rgba(116,39,127,0.05), rgba(254,133,128,0.05)); }
.search-fab-btn { width: 44px; height: 44px; }
.blog-featured-img { min-height: 350px; object-fit: cover; }
.blog-card-img-wrap { height: 220px; }
.blog-card-img { object-fit: cover; }
.blog-avatar { width: 40px; height: 40px; font-size: 14px; }
.blog-avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.blog-cover-img { aspect-ratio: 16 / 9; object-fit: cover; }
.blog-content { line-height: 1.8; color: #1b1b1f; }
.blog-content h2, .blog-content h3, .blog-content h4 { margin-top: 1.75rem; margin-bottom: 0.85rem; font-weight: 700; }
.blog-content p { margin-bottom: 1.1rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.blog-content ul, .blog-content ol { margin-bottom: 1.1rem; }
.blog-content blockquote { border-left: 4px solid var(--primary-color, #74277f); padding-left: 1rem; color: #555; font-style: italic; }
.blog-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; }
.blog-content th, .blog-content td { border: 1px solid #eee; padding: 0.5rem 0.75rem; }
.sticky-blog-sidebar { position: sticky; top: 130px; }
.blog-related-thumb { width: 72px; height: 72px; object-fit: cover; flex-shrink: 0; }
.related-blog-item:hover h4 { color: var(--primary-color, #74277f); }

/* AI Asistan sohbet */
.ai-chat-card { height: 600px; display: flex; }
.ai-chat-card > .card-body { padding: 0; flex: 1; display: flex; flex-direction: column; }
.ai-chat-scroll { padding: 1.25rem; overflow-y: auto; flex: 1; }
.ai-avatar { width: 40px; height: 40px; }
.ai-bubble { word-wrap: break-word; }
.ai-send-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.ai-typing-bubble { display: inline-flex; gap: 6px; align-items: center; }
.ai-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color, #74277f);
    opacity: 0.4;
    animation: aiTypingPulse 1.2s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTypingPulse {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

