/* 🏥 Medikal Topluluk - Temiz & Optimize CSS */

:root {
    /* Ana Renkler */
    --primary: #2a5298;
    --primary-dark: #1e3c72;
    --success: #059669;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #06b6d4;
    
    /* Gri Tonları */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    
    /* Efektler */
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease;
    --radius: 8px;
    --radius-lg: 12px;
}

/* 🎯 Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}


/* 🎨 Ortak Bileşenler */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1rem 1.5rem;
}

.card-header h3,
.card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #ffffff;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* 🏠 Header & Navigation */
.header {
    background: var(--primary);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff !important;
}

/* 🎭 Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 🏥 Platform Kategorileri */
.categories-section {
    padding: 2rem 0;
    background: var(--gray-50);
}

.categories-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2rem;
    text-align: center;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.category-header {
    background: var(--primary);
    color: white !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-header h3 {
    color: white !important;
    margin: 0;
    font-weight: 600;
}

.category-content {
    padding: 1.5rem;
}

.subcategory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    color: var(--gray-700);
    border-left: 3px solid transparent;
}

.subcategory-item:hover {
    background: var(--gray-200);
    border-left-color: var(--primary);
    transform: translateX(5px);
}

.subcategory-count {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    background: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-300);
    min-width: 80px;
    text-align: center;
}

.subcategory-item:hover .subcategory-count {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 🔐 Auth Pages */
.auth-page {
    min-height: 100vh;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: none;
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.auth-card.register-card {
    max-width: 600px;
}

.auth-card .card-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    text-align: center;
}

.auth-card .card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.auth-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 📊 Dashboard */
.dashboard-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.dashboard-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.stat-card .card-body {
    padding: 1.5rem;
    color: white !important;
}

.stat-card h6 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: white !important;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white !important;
}

.stat-card i {
    opacity: 0.7;
    color: white !important;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
}

.bg-gradient-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, #10b981 100%) !important;
    color: white !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%) !important;
    color: white !important;
}

/* 🚨 Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border-left: 4px solid var(--success);
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 250px;
        max-width: 90%;
    }

    .categories-section {
        padding: 1.5rem 0;
    }

    .categories-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .category-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .category-content {
        padding: 1rem;
    }

    .subcategory-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        margin: 1rem;
    }

    .auth-card .card-header {
        padding: 1rem;
    }

    .auth-card .card-header h3 {
        font-size: 1.25rem;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }

    .dashboard-container {
        padding: 1rem 0;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .welcome-section {
        padding: 1rem 0;
    }

    .welcome-title {
        font-size: 1.25rem;
    }

    .currency-info {
        justify-content: center;
        margin-top: 1rem;
    }

    .currency-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* 🎯 Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-300);
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: var(--gray-500);
    margin-bottom: 0;
}

.currency-info {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.currency-label {
    font-weight: 500;
    color: var(--gray-500);
}

.currency-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* 📢 Announcement Banner */
.announcement-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 0.75rem 0;
    margin-top: 1rem;
    overflow: hidden;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #856404;
}

.announcement-text {
    font-weight: 500;
    white-space: nowrap;
    animation: scroll-text 30s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 📱 Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: 1000;
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: var(--gray-500);
    transition: var(--transition);
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
    text-decoration: none;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* 🎨 CTA Section */
.cta-section {
    background: var(--gray-50);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.cta-section .container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary.btn-large {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary.btn-large:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 82, 152, 0.3);
}

.btn-secondary.btn-large {
    background-color: var(--gray-500);
    border-color: var(--gray-500);
    color: white;
}

.btn-secondary.btn-large:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* 📄 Alt Kategori Sayfaları */
.subcategory-page {
    min-height: calc(100vh - 200px);
}

.subcategory-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.subcategory-stats .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.post-filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.post-filters .btn-group .btn {
    border-radius: var(--radius);
    margin-right: 0.5rem;
}

.post-card {
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.post-card.border-warning {
    border-left: 4px solid var(--warning) !important;
}

.post-type-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 50%;
}

.post-title a {
    color: var(--gray-800);
    font-weight: 600;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    line-height: 1.5;
}

.post-meta {
    border-top: 1px solid var(--gray-200);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.post-stats .stat-item {
    padding: 0.5rem 0;
}

.post-stats .stat-number {
    font-weight: 600;
    font-size: 1.1rem;
}

.post-stats .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-reply {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 0.75rem;
    border-left: 3px solid var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--gray-300);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 2rem 0;
    margin-top: auto;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .text-center {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    margin-top: 2rem;
}

.footer .text-end {
    text-align: right;
}

.footer .text-end .text-muted {
    color: #ffffff;
    font-size: 0.875rem;
}

.footer .text-end small {
    color: var(--gray-500) !important;
}

/* style.css içine ekle */
.compact-card {
    padding: 0.75rem 1rem; /* card-body padding azaltıldı */
    margin-bottom: 1rem;   /* mb-4 yerine mb-3 gibi daha küçük boşluk */
}

.compact-card h1 {
    font-size: 1.25rem; /* Başlığı biraz küçült */
    margin-bottom: 0.25rem;
}

.compact-card p.text-muted {
    margin-bottom: 0.25rem; /* meta bilgilerin boşluğunu azalt */
    font-size: 0.85rem;
}

.compact-card .stat-item {
    margin-bottom: 0.25rem; /* İstatistikleri sıkıştır */
}

.compact-card .last-reply {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Alt Forum Kategorileri Stilleri */
.subforums-section {
    background: #ffffff;
    padding: 2rem 0;
    margin: 2rem 0;
}

.subforum-category {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    background: var(--primary);
}

.subforum-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #dee2e6;
}

.subforum-category .card-header {
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.25rem;
}

.subforum-category .card-header h5 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

.subforum-list {
    max-height: 300px;
    overflow-y: auto;
}

.subforum-item {
    transition: all 0.15s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
}

.subforum-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
}

.subforum-item .subcategory-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.subforum-item small {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #6c757d;
}

/* Alt Forum İstatistikleri */
.subforum-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 60px;
    text-align: center;
}

/* Ana Sayfa Kategori Açıklamaları */
.category-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    font-weight: 300;
    line-height: 1.4;
}

/* Online Kişi Sayısı İkonları */
.online-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.9rem;
}

.online-count i {
    font-size: 1rem;
}

.online-count span {
    min-width: 20px;
    text-align: center;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .online-count {
        font-size: 0.8rem;
    }
    
    .online-count i {
        font-size: 0.9rem;
    }
}

.subforum-stats .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #1e3c72;
}

.subforum-stats .stat-item i {
    font-size: 0.9rem;
}

.subforum-stats .stat-number {
    font-weight: 600;
    min-width: 20px;
    color: #1e3c72;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .subforum-stats {
        flex-direction: row;
        gap: 1rem;
        margin-top: 0.5rem;
        justify-content: flex-end;
    }
    
    .subforum-item .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Alt Forum Kategorileri Responsive */
@media (max-width: 1200px) {
    .subforum-category {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .subforums-section {
        padding: 1rem 0;
    }
    
    .subforum-category .card-header h5 {
        font-size: 1rem;
    }
    
    .subforum-item .fw-bold {
        font-size: 0.9rem;
    }
    
    .subforum-item small {
        font-size: 0.75rem;
    }
}

