/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0066CC;
    --primary-light: #4da6ff;
    --primary-dark: #004c99;
    --secondary: #00b894;
    --accent: #e17055;
    --bg: #f4f7fb;
    --card-bg: #ffffff;
    --text: #1a2332;
    --text-muted: #6b7a99;
    --border: #e8edf5;
    --shadow: 0 2px 16px rgba(0,102,204,0.10);
    --shadow-md: 0 4px 24px rgba(0,102,204,0.15);
    --radius: 18px;
    --radius-sm: 12px;
    --nav-h: 64px;
    --bottom-nav-h: 70px;
    --font: 'Nunito', sans-serif;
    /* Masaüstünde içeriği ortala ve sınırla */
    --max-w: 520px;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-h) + 16px);
    -webkit-font-smoothing: antialiased;
}

/* =====================================================
   MASAÜSTÜ: İçeriği mobil genişlikte ortala
   ===================================================== */
@media (min-width: 600px) {
    body {
        background: #dde4f0;
    }

    /* Tüm ana içerik sarmalayıcı */
    .app-shell {
        max-width: var(--max-w);
        margin: 0 auto;
        background: var(--bg);
        min-height: 100vh;
        position: relative;
        box-shadow: 0 0 60px rgba(0,0,0,0.15);
    }

    .top-header {
        max-width: var(--max-w);
        left: 50%;
        transform: translateX(-50%);
    }

    .bottom-nav {
        max-width: var(--max-w);
        left: 50%;
        transform: translateX(-50%);
    }

    /* Masaüstünde video grid: 2 kolon (scroll yerine grid) */
    .videos-scroll {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: unset;
        padding-bottom: 0;
    }

    .videos-scroll .video-card {
        flex: unset;
    }

    /* Videos sayfasında da 2 kolon */
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Doktor grid 2 kolon kalır ama büyük ekranda düzgün görünür */
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- TOP HEADER ---- */
.top-header {
    background: var(--card-bg);
    position: fixed;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
}

/* Header boşluğu için */
.header-spacer {
    height: var(--nav-h);
}

.top-header .logo-img {
    height: 30px;
    width: auto;
    flex: 1;
    object-fit: contain;
    object-position: left center;
}

.top-header .btn-hakkimizda {
    background: rgba(0,102,204,0.08);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 7px 12px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-header .btn-bildirim {
    background: rgba(0,184,148,0.1);
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 7px 12px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ---- HERO / SEARCH ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
    padding: 28px 16px 32px;
    color: white;
}

.hero-section h1 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.hero-section p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.5;
}

.search-box {
    background: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
}

.search-box i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ---- SECTION TITLES ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.section-link {
    font-size: 0.78rem;
    color: white;
    font-weight: 700;
    text-decoration: none;
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    transition: background 0.2s;
    white-space: nowrap;
}
.section-link:hover {
    background: #004c99;
    color: white;
}

/* ---- PAGE SECTIONS ---- */
.page-section {
    padding: 20px 16px;
}

/* ---- VIDEO CARDS (Shorts style) ---- */
.videos-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.videos-scroll::-webkit-scrollbar { display: none; }

.video-card {
    flex: 0 0 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #1a1a2e;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
    box-shadow: var(--shadow);
}

.video-card:active { transform: scale(0.97); }
.video-card:hover { transform: scale(1.02); }

.video-thumb {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
}

.video-thumb-placeholder {
    width: 100%;
    aspect-ratio: 9/16;
    background: linear-gradient(160deg, #1a2a4a 0%, #0066cc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.video-thumb-placeholder i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.7);
}

.video-thumb-placeholder .thumb-name {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    text-align: center;
    padding: 0 8px;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.video-info .video-title {
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info .video-doctor {
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
    margin-top: 4px;
    font-weight: 500;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    background: #0066CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,102,204,0.5);
    transition: transform 0.15s, background 0.15s;
}

.video-card:hover .video-play-btn {
    background: #004c99;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
    color: white;
    font-size: 1.15rem;
    margin-left: 3px;
}

/* ---- VIDEOS GRID (Videos page) ---- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.videos-grid .video-card {
    flex: unset;
}

/* ---- DOCTOR CARDS ---- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.doctor-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: block;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.doctor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.doctor-card:active { transform: scale(0.97); }

.doctor-badge-new {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--secondary);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    margin: 0 auto 10px;
    display: block;
    background: var(--bg);
}

.doctor-avatar-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar-placeholder i {
    color: white;
    font-size: 1.9rem;
}

.doctor-name {
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text);
}

.doctor-branch {
    font-size: 0.73rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(0,102,204,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* ---- FAQ CARDS ---- */
.faq-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.faq-q {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.faq-q::before {
    content: 'S: ';
    color: var(--primary);
    font-weight: 800;
}

.faq-a {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-a::before {
    content: 'C: ';
    color: var(--secondary);
    font-weight: 800;
}

.btn-video-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(225,112,85,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
}

/* ---- BOTTOM NAVIGATION ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--bottom-nav-h);
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 200;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    transition: color 0.2s;
    padding: 8px 4px;
}

.bottom-nav a i {
    font-size: 1.4rem;
    transition: transform 0.2s;
}

.bottom-nav a.active {
    color: var(--primary);
}

.bottom-nav a.active i {
    transform: scale(1.1);
}

/* ---- DOCTOR DETAIL PAGE ---- */
.doctor-hero {
    background: linear-gradient(160deg, var(--primary) 0%, #0052a3 100%);
    padding: 32px 20px 80px;
    text-align: center;
    position: relative;
}

.doctor-hero-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin: 0 auto 14px;
    display: block;
    box-shadow: var(--shadow-md);
}

.doctor-hero-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 4px solid white;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-hero-photo-placeholder i {
    color: white;
    font-size: 3rem;
}

.doctor-hero h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.doctor-hero .branch-tag {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-block;
}

/* Action buttons - 4 buton */
.action-buttons {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-top: -28px;
    position: relative;
    z-index: 10;
}

.action-btn {
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 14px 6px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-md);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.action-btn:active { transform: scale(0.95); }

.action-btn i {
    font-size: 1.35rem;
}

.action-btn.phone i { color: var(--secondary); }
.action-btn.whatsapp i { color: #25D366; }
.action-btn.maps i { color: var(--accent); }
.action-btn.videos i { color: var(--primary); }

/* Detail sections */
.detail-section {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.detail-section h3 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3 i {
    color: var(--primary);
}

.detail-section p, .detail-section li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.65;
}

.interest-tag {
    display: inline-block;
    background: rgba(0,102,204,0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px;
}

/* ---- SEARCH PAGE ---- */
.search-page-bar {
    background: var(--card-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-h);
    z-index: 50;
}

.search-page-bar .search-box {
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ---- HAKKIMIZDA SAYFASI ---- */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
    padding: 40px 20px 30px;
    text-align: center;
    color: white;
}

.about-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.about-hero p {
    font-size: 0.92rem;
    opacity: 0.85;
    line-height: 1.6;
}

.about-section {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-section h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 8px;
}

.about-section p:last-child { margin-bottom: 0; }

/* ---- BUTTONS ---- */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:active { transform: scale(0.97); background: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---- ADMIN ---- */
.admin-body {
    background: #f0f2f5;
    padding-bottom: 0;
}

.admin-sidebar {
    background: #1a2332;
    color: white;
    min-height: 100vh;
    padding: 0;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    overflow-y: auto;
}

.admin-sidebar .sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.admin-sidebar .sidebar-logo span { color: var(--secondary); }

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255,255,255,0.08);
    color: white;
    border-left-color: var(--primary-light);
}

.admin-sidebar nav a i { font-size: 1.1rem; width: 20px; }

.admin-content {
    margin-left: 250px;
    padding: 24px;
    min-height: 100vh;
}

.admin-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    background: var(--bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.badge-active {
    background: rgba(0,184,148,0.15);
    color: var(--secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-passive {
    background: rgba(180,180,180,0.15);
    color: #999;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }
    .admin-content {
        margin-left: 0;
        padding: 16px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-section { animation: fadeInUp 0.3s ease; }

/* SSS - İlgili Doktorlar */
.faq-related-doctors {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.faq-related-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
}

.faq-doctor-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f6ff;
    border: 1.5px solid #c8deff;
    border-radius: 20px;
    padding: 5px 12px 5px 6px;
    font-size: 0.8rem;
    color: #0066CC;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}

.faq-doctor-chip:hover {
    background: #dceeff;
    border-color: #0066CC;
    color: #004c99;
}

.faq-doctor-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.chip-branch {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}