:root {
    --primary-color: #7c3aed;
    /* Modern Mor */
    --primary-hover: #6d28d9;
    --bg-color: #f3f4f6;
    /* Açık Gri Arkaplan */
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

/* ===== Navbar ===== */
.navbar {
    background: var(--card-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    /* İçerik genişliği artırıldı */
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .search-bar {
        display: block;
    }
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Modern Icon Button */
.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.icon-btn {
    background: transparent;
    /* Remove white bg to blend better or keep minimal */
    border: none;
    /* Remove border to avoid the 'oval' look if width/height behaves weirdly */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    /* Removed heavy shadows/borders for cleaner look */
}

.icon-btn:hover {
    background: #f3f4f6;
    /* Subtle hover bg */
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Removed the pulse-ring ::before pseudo-element as it was causing visual clutter/misalignment */

/* Badge Style */
.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    animation: bounce-badge 2s infinite;
}

@keyframes bounce-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ===== Main Layout System ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-bottom: 4rem;
    /* Space at bottom of page */
    margin-top: 64px;
    /* Space for fixed navbar */
}

/* Grid Layout for Profile Page */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    /* Sol 320px, Sağ Kalan */
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    align-items: start;
    /* İçerikler yukarı hizalı */
}

@media (max-width: 850px) {
    .profile-layout {
        grid-template-columns: 1fr;
        /* Mobilde tek sütun */
    }

    /* FIX: Mobilde kartın yapışkanlığını kesin olarak kaldır */
    .sidebar-card {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        margin-bottom: 2rem;
        z-index: 1;
        transform: none !important;
    }
}

/* ===== HOME PAGE (FEED) LAYOUT ===== */
.main-layout {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 2rem;
    margin-top: calc(64px + 2rem);
    /* Navbar height + spacing */
    align-items: start;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 320px 1fr;
    }

    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    /* .sidebar-left defaults to hidden on mobile in normal flow, 
       but we need it visible when the drawer is active. */
    .sidebar-left {
        display: none;
    }

    /* When active class is added by JS, force it to show as block (because it's a fixed drawer now) */
    .sidebar-left.active {
        display: block;
    }
}

/* Sidebar Navigation (Left) */
.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-left .menu-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
    margin-bottom: 0.25rem;
}

.menu-item:hover,
.menu-item.active {
    background: #f3f4f6;
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Filter Tags Widget */
.filter-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.filter-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.08);
    /* Hafif mor */
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
}

/* FEED SECTION (Middle) */
.feed {
    min-width: 0;
}

/* Share Box */
.share-box {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.share-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar-medium {
    width: 40px;
    height: 40px;
}

.user-avatar-medium img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.share-input-wrapper input {
    flex: 1;
    border: none;
    background: var(--bg-color);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    outline: none;
}

.share-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Feed Tabs */
.feed-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.tab.active {
    color: var(--text-main);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* POST CARD Styles */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
}

.more-options {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.more-options:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
    font-size: 1rem;
}

.user-role {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    width: fit-content;
    margin-top: 2px;
}

.user-role.seeker {
    background: #e0f2fe;
    color: #0369a1;
}

.user-role.experienced {
    background: #dcfce7;
    color: #15803d;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    /* For anchors */
    display: inline-block;
    /* Helps with clickable area */
}

a.post-time:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-btn {
    border: 1px solid var(--border-color);
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.post-context-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.post-context-badge i {
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-content p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hashtag {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

.read-more-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.read-more-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Post Images in Feed */
.image-grid {
    display: flex;
    gap: 0.5rem;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.post-img {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
}

.img-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.interaction-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s;
}

.interaction-btn:hover {
    color: var(--primary-color);
}

/* Comments */
.comments-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment.reply {
    margin-left: 3rem;
    margin-top: -0.5rem;
    position: relative;
}

.comment.reply::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: -10px;
    width: 20px;
    height: 20px;
    border-left: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0 0 0 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-content {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

.comment-user {
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 2px;
}

/* Right Sidebar (Trends) */
.widget-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.trend-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.trend-item:last-child {
    border: none;
    margin: 0;
}

.trend-rank {
    font-weight: 700;
    color: #9ca3af;
}

.trend-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.trend-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.story-user {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.story-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.btn-sm {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    z-index: 1000;
}

.nav-item {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.add-post {
    color: var(--primary-color);
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* ===== Left Sidebar (Identity Card) ===== */
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 84px;
    /* Navbar altından başlar */
}

.sidebar-header {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    padding: 2rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.doctor-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verified-badge {
    color: #3b82f6;
    font-size: 1rem;
}

.doctor-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rank-pill {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.sidebar-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar-info {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    align-items: flex-start;
}

.info-row i {
    color: var(--text-muted);
    margin-top: 4px;
    width: 16px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ===== Right Content Area ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary-color);
}

/* About Text */
.about-text {
    color: #374151;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Tags & Chips */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chip i {
    color: var(--green-success, #10b981);
}

/* Certificate Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.cert-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-icon {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== MOBILE APP ONBOARDING SCREENS ===== */
.onboarding-container {
    display: none !important;
    /* USER REQUEST: Disable Onboarding */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    /* En üstte durmasını sağlar */
    display: flex;
    /* Flex ama görünürlük JS ile kontrol edilecek */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.onboarding-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.onboarding-slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.slide-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.slide-content {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
}

.slide-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.onboarding-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    background: var(--primary-color);
    border-radius: 10px;
}

.btn-next {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s;
}

.btn-next:active {
    transform: scale(0.95);
}

.btn-skip {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
}

.btn-start-app {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== INTERACTIVE POST ELEMENTS ===== */

/* 1. Dropdown Menu (3 Dots) */
.options-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default */
    z-index: 100;
    width: 160px;
    overflow: hidden;
}

.options-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background: #fef2f2;
}

/* 2. Inline Comment Box */
.inline-comment-area {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: none;
    /* Hidden by default */
}

.inline-comment-area.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.comment-input-wrapper img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-input-wrapper input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
    background: #f9fafb;
    transition: all 0.2s;
}

.comment-input-wrapper input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-send-comment {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-send-comment:hover {
    transform: scale(1.1);
}

/* Rating Bars */
.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.r-label {
    width: 140px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.r-bar-bg {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.r-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.r-val {
    font-weight: 700;
    width: 30px;
    text-align: right;
    font-size: 0.9rem;
}

/* Review Card Minimal */
.review-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.r-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.r-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.r-stars {
    color: #f59e0b;
    font-size: 0.8rem;
}


/* ===== SHARE POPUP MODAL ===== */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.share-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-overlay.active .share-modal {
    transform: translateY(0);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.share-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-share {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.close-share:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
}

.share-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.2s;
}

.share-opt:hover .share-icon-circle {
    transform: scale(1.1);
}

.share-opt span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.bg-whatsapp {
    background: #25D366;
}

.bg-twitter {
    background: #1DA1F2;
}

.bg-facebook {
    background: #1877F2;
}

.bg-copy {
    background: var(--text-muted);
}

.copy-link-area {
    display: flex;
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.copy-link-area input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ===== MODERN TREND ITEM ===== */
.trend-item.modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.trend-item.modern:last-child {
    border-bottom: none;
}

.trend-rank-badge {
    position: absolute;
    top: 5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 2;
}

.trend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.trend-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-icon {
    color: #3b82f6;
    font-size: 0.8rem;
}

.trend-category {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.trend-stats {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== MODERN CATEGORIES SIDEBAR ===== */
.modern-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
}

.cat-item:hover {
    background: #f3e8ff;
    /* Light purple tint similar to active states */
    transform: translateX(5px);
}

.cat-icon-box {
    width: 36px;
    height: 36px;
    background: #f9fafb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.2s;
}

.cat-item:hover .cat-icon-box {
    background: var(--primary-color);
    color: white;
}

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.cat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== MOBILE RESPONSIVE SIDEBAR ===== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.25rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Sidebar Drawer Style */
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -280px;
        /* Hide off-screen */
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding-top: 1rem;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .sidebar-left.active {
        left: 0;
    }

    /* Adjust content inside sidebar for mobile if needed */
    .sidebar-left .menu-card,
    .sidebar-left .filter-card {
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 0;
    }

    .sidebar-left .menu-card {
        padding-top: 3rem;
        /* Space for close button if added, or just spacing */
    }
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;

}

/* ===== FORMS & AUTH PAGES ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: white;
    color: var(--text-main);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Auth Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.auth-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 0.8rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.auth-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.social-btn:hover {
    background: #f9fafb;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.check-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.check-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.forgot-pass {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Doctor Register Specific */
.doc-reg-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    min-height: 100vh;
    background: white;
}

.doc-info-side {
    background: var(--primary-color);
    padding: 4rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.doc-form-side {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.doc-benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.doc-benefit-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .doc-reg-layout {
        grid-template-columns: 1fr;
    }

    .doc-info-side {
        padding: 2rem;
        min-height: auto;
    }

    .doc-form-side {
        padding: 2rem;
    }

}

/* ACTION HUB (New Dynamic Buttons) */
.action-hub-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-hub-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.25rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.action-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.hub-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hub-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.hub-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.hub-arrow {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.action-hub-card:hover .hub-arrow {
    transform: translateX(4px);
    background: white;
}

/* Card Specific Styles */
.question-card {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
}

.question-card .hub-icon-box {
    background: white;
    color: #4f46e5;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

.question-card .hub-arrow {
    color: #4f46e5;
}

.experience-card {
    background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
    border-color: #f0abfc;
}

.experience-card .hub-icon-box {
    background: white;
    color: #c026d3;
    box-shadow: 0 4px 6px -1px rgba(192, 38, 211, 0.1);
}

.experience-card .hub-arrow {
    color: #c026d3;
}

@media (max-width: 600px) {
    .action-hub-container {
        grid-template-columns: 1fr;
    }
}

/* User Profile Dropdown */
.user-menu-container {
    position: relative;
    z-index: 50;
    /* Ensure it's above other things */
}

.user-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.user-dropdown.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.dropdown-item.text-danger i {
    color: #ef4444;
}

/* ===== APP DOWNLOAD MODAL ===== */
.app-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.app-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.app-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.app-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.app-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.app-modal p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.get-app-btn {
    background: #f3f4f6;
    color: #1f2937;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.5rem;
    height: 36px;
}

.get-app-btn:hover {
    background: #e5e7eb;
}

.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: inline-block;
    margin: 1.5rem 0;
}

.qr-container img {
    width: 150px;
    height: 150px;
    display: block;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.store-badge {
    height: 40px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.store-badge:hover {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .d-none-mobile {
        display: none;
    }

    .get-app-btn {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }
}