/* ==========================================================================
   Telegram Grup Rehberi - Modern CSS Styles
   Inspired by grupbul.com design
   ========================================================================== */

/* Kategori sayfaları için tıklanabilir kartlar */
.group-card[onclick], .card[onclick] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card[onclick]:hover, .card[onclick]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

:root {
    /* Ana Renkler */
    --primary-color: #0088cc;
    --primary-dark: #006ba3;
    --primary-light: #33a3d9;
    --secondary-color: #25d366;
    --accent-color: #ff6b6b;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Neutral Renkler */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #495057;
    --dark: #343a40;
    --black: #212529;
    
    /* Gradient Renkler */
    --gradient-primary: linear-gradient(135deg, #0088cc 0%, #25d366 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    
    /* Gölgeler */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    /* Fontlar */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* More Spacing */
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* ==========================================================================
   Accessibility - Skip Link
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.hero-search .input-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.95);
}

.hero-search .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--accent-color);
    border: none;
    color: white;
}

.hero-stats {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Filter Tabs (Grupbul.com style)
   ========================================================================== */

.filter-tabs {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    margin: -30px auto 0;
    position: relative;
    z-index: 3;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
}

.filter-tabs .nav-pills .nav-link {
    border-radius: var(--radius-md);
    padding: 12px 24px;
    margin: 0 4px;
    font-weight: 500;
    color: var(--gray);
    border: none;
    transition: all var(--transition-normal);
}

.filter-tabs .nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.filter-tabs .nav-pills .nav-link:hover:not(.active) {
    background: var(--light-gray);
    color: var(--primary-color);
}

/* ==========================================================================
   Platform Cards
   ========================================================================== */

.platform-section {
    padding: 80px 0 60px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--dark);
    position: relative;
}

/* Platformlar ve Kategoriler için özel stil */
.platform-section .section-title,
.category-section .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-2xl);
}

.platform-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.platform-card:hover::before {
    transform: scaleX(1);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.platform-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.platform-description {
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
}

.platform-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--light-gray);
}

.platform-stat {
    text-align: center;
}

.platform-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.platform-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ==========================================================================
   Category Cards
   ========================================================================== */

.category-section {
    padding: 60px 0;
    background: var(--white);
}

.category-card {
    display: block;
    height: 100%;
    transition: all var(--transition-normal);
}

.category-card-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    height: 100%;
    border: 2px solid var(--light-gray);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-card-inner {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.1);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon-wrapper {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.category-icon {
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    color: white !important;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
    transition: color var(--transition-normal);
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

.category-count {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color var(--transition-normal);
}

.category-card:hover .category-count {
    color: var(--primary-dark);
}

.category-view-all {
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.category-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Group Cards
   ========================================================================== */

.groups-section {
    padding: 60px 0;
}

.group-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.group-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-gray);
}

.group-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.group-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
    line-height: 1.3;
}

.group-description {
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--light-gray);
}

.group-platform {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.group-platform i {
    margin-right: var(--spacing-xs);
    color: var(--platform-icon-color, var(--primary-color, #0088cc));
    transition: color var(--transition-fast);
}

/* Dynamic platform icon color - JavaScript ile set edilecek */
.group-platform[data-platform-color] i {
    color: var(--platform-icon-color, var(--primary-color, #0088cc));
}

.group-category {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.group-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--gray);
}

.group-action {
    margin-top: auto;
}

.btn-join {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    width: 100%;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .platform-section .section-title,
    .category-section .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .platform-section,
    .category-section,
    .groups-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .platform-section .section-title,
    .category-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .filter-tabs .nav-pills .nav-link {
        padding: 10px 16px;
        margin: 2px;
        font-size: 0.9rem;
    }
    
    .category-card-inner {
        padding: var(--spacing-md);
    }
    
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-name {
        font-size: 1rem;
    }
    

}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-search .form-control,
    .hero-search .btn {
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .filter-tabs {
        margin: -20px 15px 0;
    }
    
    .filter-tabs .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-tabs .nav-pills .nav-link {
        white-space: nowrap;
        padding: 8px 16px;
        margin: 0 2px;
    }
    
    .platform-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .group-image {
        height: 150px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title.text-dark {
        font-size: 1.6rem;
    }
    
    .section-title i.fa-star,
    .section-title i.fa-clock {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    .section-title.text-dark::after {
        width: 100px;
        height: 3px;
        left: 52px;
        bottom: -10px;
    }
    
    .section-title.text-dark {
        margin-top: 0.8rem;
    }
    
    .platform-section .section-title,
    .category-section .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .category-card-inner {
        padding: var(--spacing-sm);
    }
    
    .category-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: var(--spacing-sm);
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .category-count {
        font-size: 0.8rem;
    }
    
    /* Navbar düzeltmeleri */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Card düzeltmeleri */
    .group-card {
        margin-bottom: 1rem;
    }
    
    .group-content {
        padding: 1rem;
    }
    
    .group-title {
        font-size: 1.1rem;
    }
    
    .group-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .platform-icon {
        font-size: 2.5rem;
    }
    
    .platform-name {
        font-size: 1.25rem;
    }
    
    .category-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title.text-dark {
        font-size: 1.5rem;
    }
    
    .section-title i.fa-star,
    .section-title i.fa-clock {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .section-title.text-dark::after {
        width: 80px;
        height: 2px;
        left: 46px;
        bottom: -8px;
    }
    
    .section-title.text-dark {
        margin-top: 0.6rem;
    }
    
    .platform-section .section-title,
    .category-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .category-card-inner {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .category-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .category-name {
        font-size: 0.85rem;
    }
    
    .category-count {
        font-size: 0.75rem;
    }
    

}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: -0.3px;
    display: inline-block;
    position: relative;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.border-radius-custom {
    border-radius: var(--radius-lg);
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

[data-theme="dark"] {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #9ca3af;
    --dark-gray: #d1d5db;
    --dark: #f3f4f6;
    --black: #ffffff;
}

[data-theme="dark"] body {
    background-color: var(--white);
    color: var(--dark);
}

[data-theme="dark"] .platform-card,
[data-theme="dark"] .category-card-inner,
[data-theme="dark"] .group-card {
    background: #2d2d2d !important;
    border-color: #404040 !important;
    color: #e5e7eb !important;
}

[data-theme="dark"] .category-card {
    background: #2d2d2d !important;
    border-color: #404040 !important;
}

[data-theme="dark"] .category-card-inner * {
    color: #e5e7eb !important;
}

[data-theme="dark"] .category-name {
    color: #e5e7eb !important;
}

[data-theme="dark"] .category-icon {
    color: #e5e7eb !important;
}

[data-theme="dark"] .category-icon i {
    color: #e5e7eb !important;
}

[data-theme="dark"] .category-count {
    color: #9ca3af !important;
}

[data-theme="dark"] .category-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .category-card:hover .category-icon-wrapper {
    background: var(--gradient-primary) !important;
}

[data-theme="dark"] .category-card:hover .category-icon {
    color: white !important;
}

[data-theme="dark"] .category-card:hover .category-name {
    color: #ffffff !important;
}

[data-theme="dark"] .category-card:hover .category-card-inner {
    background-color: #333333 !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .filter-tabs {
    background: var(--light-gray);
}

[data-theme="dark"] .platform-card-compact {
    background: var(--light-gray);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .category-section {
    background: #1a1a1a !important;
}

[data-theme="dark"] .platform-stats {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .group-meta {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .group-category {
    background: rgba(255,255,255,0.1);
    color: var(--gray);
}

[data-theme="dark"] .hero-search .form-control {
    background: rgba(255,255,255,0.95);
    color: var(--dark);
}

[data-theme="dark"] .filter-tabs .nav-pills .nav-link:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .text-dark {
    color: var(--dark) !important;
}

[data-theme="dark"] .latest-groups-section {
    background: var(--white);
}

[data-theme="dark"] .section-title.text-dark {
    color: var(--dark) !important;
}

[data-theme="dark"] .card {
    background-color: var(--light-gray);
    border-color: rgba(255,255,255,0.1);
    color: var(--dark);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light {
    background-color: var(--light-gray) !important;
}

[data-theme="dark"] .border {
    border-color: rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .loading::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

[data-theme="dark"] .pagination .page-link {
    background-color: var(--light-gray);
    border-color: rgba(255,255,255,0.1);
    color: var(--dark);
}

[data-theme="dark"] .pagination .page-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .alert {
    background-color: var(--light-gray);
    border-color: rgba(255,255,255,0.1);
    color: var(--dark);
}

[data-theme="dark"] .table {
    color: var(--dark);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: rgba(255,255,255,0.1);
}

/* CTA Section Dark Mode */
[data-theme="dark"] section[style*="background: var(--gradient-primary)"] {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* SEO Content Section Dark Mode */
[data-theme="dark"] .seo-content-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

[data-theme="dark"] .seo-card {
    background: var(--light-gray) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: var(--dark) !important;
}

[data-theme="dark"] .seo-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .seo-title {
    color: var(--dark) !important;
}

[data-theme="dark"] .seo-text {
    color: var(--gray) !important;
}

[data-theme="dark"] .seo-text a {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .seo-text a:hover {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .seo-link {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .seo-link:hover {
    color: var(--primary-light) !important;
}

/* Modern Hero Section Dark Mode */
[data-theme="dark"] .modern-hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

[data-theme="dark"] .modern-hero-section::before {
    opacity: 0.2;
}

[data-theme="dark"] .header-icon-wrapper {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .modern-header-title {
    color: var(--dark) !important;
}

[data-theme="dark"] .modern-header-title .title-text {
    color: var(--dark) !important;
}

[data-theme="dark"] .modern-header-title .title-subtitle {
    color: var(--gray) !important;
}

/* Hero Stats Minimal Dark Mode */
[data-theme="dark"] .hero-stats-minimal {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stats-simple {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stat-number {
    color: white;
}

[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .stat-divider {
    color: rgba(255, 255, 255, 0.5);
}

/* Hero Section Dark Mode */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

[data-theme="dark"] .hero-section::before {
    opacity: 0.15;
}

[data-theme="dark"] .hero-title {
    color: var(--dark);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero-stats {
    border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .stat-item {
    color: white;
}

/* Button Light Dark Mode */
[data-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

[data-theme="dark"] .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* Splide Slider Dark Mode */
[data-theme="dark"] .splide__arrow {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .splide__arrow:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .splide__arrow svg {
    fill: var(--dark) !important;
}

/* Featured Groups & Latest Groups Title Styles */
.section-title i.fa-star,
.section-title i.fa-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    margin-right: 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.section-title i.fa-star {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.section-title i.fa-star.text-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #fff !important;
}

.section-title i.fa-clock {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.section-title i.fa-clock.text-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%) !important;
    color: #fff !important;
}

.section-title i.fa-star:hover,
.section-title i.fa-clock:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Section Title with Icon - Special Styling */
.section-title.text-dark {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0;
    position: relative;
}

.section-title.text-dark::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 57px;
    width: 120px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Ensure parent container has spacing */
.d-flex.justify-content-between.mb-4 {
    margin-bottom: 2rem !important;
}

.latest-groups-section .mb-4 {
    margin-bottom: 2rem !important;
}

.latest-groups-section .section-title.text-dark::after {
    left: 57px;
}

/* Section Title Dark Mode */
[data-theme="dark"] .section-title {
    color: var(--dark);
}

[data-theme="dark"] .platform-section .section-title,
[data-theme="dark"] .category-section .section-title {
    color: var(--dark);
}

[data-theme="dark"] .section-title i.fa-star {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

[data-theme="dark"] .section-title i.fa-clock {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
}

[data-theme="dark"] .section-title.text-dark::after {
    background: var(--gradient-primary);
}




/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Bootstrap override for better spacing */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix for navbar dropdown */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

/* Fix for form controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
}

/* Fix for buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Fix for pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--light-gray);
}

.pagination .page-link:hover {
    color: var(--primary-dark);
    background-color: var(--light-gray);
    border-color: var(--light-gray);
}

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

/* Fix for alerts */
.alert {
    border: none;
    border-radius: var(--radius-md);
}

/* Fix for cards */
.card {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-lg);
}

/* Fix for badges */
.badge {
    font-weight: 500;
}

/* Fix for text colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: var(--gray) !important;
}

/* ==========================================================================
   Compact Platform Cards
   ========================================================================== */

.platform-card-compact {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.platform-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.platform-card-compact:hover .platform-icon-compact {
    background: rgba(0, 136, 204, 0.15);
    transform: scale(1.05);
}

.platform-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.platform-icon-compact {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(0, 136, 204, 0.1);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.platform-info {
    flex: 1;
    min-width: 0;
}

.platform-name-compact {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    color: var(--dark);
}

.platform-count {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.btn-platform-compact {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.btn-platform-compact:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile optimization */
@media (max-width: 576px) {
    .platform-card-compact {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .platform-header {
        margin-bottom: 12px;
        gap: 10px;
    }
    
    .platform-icon-compact {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .platform-name-compact {
        font-size: 15px;
    }
    
    .platform-count {
        font-size: 12px;
    }
    
    .btn-platform-compact {
        padding: 10px 16px;
        font-size: 13px;
    }
}
 / *   H o m e   P a g e   R e s p o n s i v e   G r i d   F i x   * / 
 / *   B o o t s t r a p   R e s p o n s i v e   G r i d   * / 
 . c o l - s m - 6   { 
         f l e x :   0   0   5 0 %   ! i m p o r t a n t ; 
         m a x - w i d t h :   5 0 %   ! i m p o r t a n t ; 
 } 
 
 . c o l - l g - 3   { 
         f l e x :   0   0   2 5 %   ! i m p o r t a n t ; 
         m a x - w i d t h :   2 5 %   ! i m p o r t a n t ; 
 } 
 
 / *   F o r c e   2   c o l u m n s   o n   m o b i l e   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 7 . 9 8 p x )   { 
         . c o l - s m - 6   { 
                 f l e x :   0   0   5 0 %   ! i m p o r t a n t ; 
                 m a x - w i d t h :   5 0 %   ! i m p o r t a n t ; 
                 w i d t h :   5 0 %   ! i m p o r t a n t ; 
         } 
 } 
 
 / *   F o r c e   4   c o l u m n s   o n   d e s k t o p   * / 
 @ m e d i a   ( m i n - w i d t h :   9 9 2 p x )   { 
         . c o l - l g - 3   { 
                 f l e x :   0   0   2 5 %   ! i m p o r t a n t ; 
                 m a x - w i d t h :   2 5 %   ! i m p o r t a n t ; 
                 w i d t h :   2 5 %   ! i m p o r t a n t ; 
         } 
 } 
 
 