/* ==============================================
   TradingMonday Custom Styles
   ============================================== */

/* Page Spacing - Account for fixed header */
.page-content-spacing {
    margin-top: 3rem;
}

/* Main content spacing below fixed header */
main {
    padding-top: 80px;
}

header.fixed-top {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.15);
}

/* Header Search Box - Increase width on larger screens */
@media (min-width: 992px) {
    .navbar-collapse .nav.flex-nowrap {
        min-width: 400px;
        max-width: 500px;
    }
}

/* Category Header Styles */
.category-header {
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

.card {
    box-shadow:none;
}

.card:hover {
    box-shadow: none;
}

/* Add space under header border */
.card-body.pt-0 {
    padding-top: 1.25rem !important;
}

/* View All Link */
.view-all-link {
    color: #334155;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #1e293b;
}

/* Resource Row */
.resource-row {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s;
    cursor: pointer;
}

.resource-row:last-child {
    border-bottom: none;
}

.resource-row:hover {
    background: rgba(51, 65, 85, 0.02);
}

/* Resource Rank Number */
.resource-rank {
    width: 30px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Layout for Resource Rows */
@media (max-width: 767px) {
    .resource-row {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 1rem 0;
    }

    /* Rank stays on left */
    .resource-row .resource-rank {
        align-self: flex-start;
        margin-top: 0.25rem;
    }

    /* Image and resource info take full width after rank */
    .resource-row > img {
        width: 56px !important;
        height: 56px !important;
        margin-right: 0.75rem !important;
    }

    .resource-row .resource-info {
        flex: 1;
        min-width: 0;
        margin: 0 !important;
    }

    /* Make resource name and category more readable on mobile */
    .resource-row .resource-name {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .resource-row .resource-category {
        font-size: 0.7rem;
        line-height: 1.4;
        color: #6c757d;
    }

    /* Green tags inside resource-info (Blogs section) */
    .resource-row .resource-info .text-success {
        background-color: #d1fae5;
        color: #065f46 !important;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        white-space: nowrap;
        display: inline-block;
    }

    /* Stats/actions section on new line, full width */
    .resource-row > .d-flex.flex-column {
        flex-basis: 100% !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        margin-left: calc(30px + 0.5rem) !important; /* offset by rank width */
        margin-right: 0 !important;
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .resource-row > .d-flex.flex-column > span {
        margin-bottom: 0 !important;
        order: 1;
    }

    /* Green category tags inside flex-column (Podcasts section) */
    .resource-row > .d-flex.flex-column > span.text-success {
        background-color: #d1fae5;
        color: #065f46 !important;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        white-space: nowrap;
        display: inline-block;
    }

    /* Bookmark button on mobile - push to right */
    .resource-row > .d-flex.flex-column > button {
        margin-left: auto !important;
        order: 2;
    }
}

/* Resource Row Wrapper */
.resource-row-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-row-wrapper .resource-row {
    flex: 1;
    min-width: 0;
}

/* Resource Info */
.resource-info {
    flex: 1;
    min-width: 0;
    margin: 0 1rem;
}

.resource-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 0.2rem;
}

.resource-category {
    font-size: 0.75rem;
    color: #64748b;
}

/* Resource Stats */
.resource-stat {
    text-align: right;
    min-width: 80px;
}

.stat-value {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
}

.stat-positive {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Stat Badges */
.stat-badge {
    font-size: 0.75rem;
    background: rgba(51, 65, 85, 0.08);
    color: #334155;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

/* Category Stats Container */
.category-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Category Link Buttons */
.category-link {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 400;
    font-size: 0.875rem;
    text-align: left;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s;
}

.category-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Category Count Badge */
.category-count {
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

/* Consistent Badge Styling - Modern custom look */
.badge {
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.badge.bg-primary {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: none;
}

.badge.bg-light {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0;
}

.badge.bg-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}

.badge.bg-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}

.badge.bg-secondary {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #cbd5e1;
}

/* Primary Button with New Color */
.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
}

/* Outline Primary buttons in sidebars use dark slate */
.btn-outline-primary {
    border-color: #334155 !important;
    color: #334155 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

/* Secondary Button Styles */
.btn-secondary,
.btn-outline-secondary {
    border-color: #64748b !important;
    color: #64748b !important;
    background-color: transparent !important;
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    background-color: #64748b !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

/* Footer Styles */
footer a.text-muted:hover {
    color: #334155 !important;
    text-decoration: none;
}

footer .bi:hover {
    color: #334155 !important;
}


.ls-xl {
    letter-spacing: .2em !important;
}

.card.newsletter-box {
    border-color: #c5d7ed !important;
}

.card.newsletter-box .form-control{
    border-color: #b1caeb !important;
}

.card.newsletter-box .form-control:focus {
    border-color: var(--tm-primary) !important;
}

/* Category Page Header */
.category-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-icon-large {
    font-size: 3rem;
    line-height: 1;
}

.category-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.category-page-description {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b !important;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}

.filter-chip:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155 !important;
}

.filter-chip.active,
.filter-chip.active:hover,
.filter-chip.active:focus,
.filter-chip.active:visited {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

/* Resource Card */
.resource-card-full {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.resource-card-full:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.resource-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.resource-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
}

.resource-card-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.resource-card-title-link:hover .resource-card-title {
    color: #6366f1;
}

.resource-card-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Resource Meta Info */
.resource-meta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #64748b;
}

.resource-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.resource-meta-icon {
    font-size: 1rem;
}

.resource-meta-text {
    color: #334155;
    font-weight: 500;
}

.resource-rating {
    color: #f59e0b;
    font-weight: 600;
}

/* Resource Tags */
.resource-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
}

.resource-tag:hover {
    background-color: #334155;
    color: #ffffff;
}

/* Resource Action Buttons */
.resource-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.resource-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background-color: transparent;
    color: #64748b;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.resource-action-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.resource-action-btn.action-external {
    border-color: #dbeafe;
    color: #1a73e8;
}

.resource-action-btn.action-external:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1557b0;
}

.resource-action-btn.action-like {
    border-color: #fecdd3;
    color: #dc2626;
}

.resource-action-btn.action-like:hover {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

.resource-action-btn.action-share {
    border-color: #e2e8f0;
    color: #64748b;
}

.resource-action-btn.action-share:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* ==============================================
   Responsive Sidebar Styles (offcanvas-lg)
   ============================================== */

/* Mobile Toggle Bar */
.mobile-sidebar-toggle {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.mobile-sidebar-toggle .btn {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Responsive Offcanvas Sidebar */
#sidebar .offcanvas-header {
    background-color: #f8fafc;
}

#sidebar .offcanvas-title {
    font-weight: 600;
    color: #0f172a;
}

/* Mobile offcanvas width - only apply when it's actually an offcanvas */
@media (max-width: 991.98px) {
    #sidebar.offcanvas-lg {
        --bs-offcanvas-width: 85% !important;
        width: 85% !important;
        max-width: 85% !important;
    }
}

/* Mobile Browse Categories Button */
@media (max-width: 991.98px) {
    .btn[data-bs-target="#sidebar"] {
        background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%) !important;
        color: white !important;
        border: none !important;
        padding: 0.875rem 1.25rem !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25) !important;
        transition: all 0.3s ease !important;
    }

    .btn[data-bs-target="#sidebar"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(26, 115, 232, 0.35) !important;
    }

    .btn[data-bs-target="#sidebar"] i {
        font-size: 1.1rem;
    }
}

/* On desktop: ensure sidebar displays normally inline (not as flex for navbar) */
@media (min-width: 992px) {
    #sidebar.offcanvas-lg {
        display: block !important;
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        background: transparent !important;
        border: none !important;
        width: 100% !important;
        height: auto !important;
        z-index: auto !important;
    }

    #sidebar.offcanvas-lg .offcanvas-body {
        display: block !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #sidebar.offcanvas-lg .offcanvas-header {
        display: none !important;
    }
}

/* On mobile: drawer styling */
@media (max-width: 991.98px) {
    #sidebar .offcanvas-body {
        padding: 1rem;
    }

    #sidebar .card {
        border: 1px solid #e2e8f0;
        box-shadow: none;
    }

    #sidebar .card-header {
        background: transparent;
    }

    #sidebar .card-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #334155;
    }

    /* Reorder columns: main content first on mobile */
    .row.g-4 > .col-md-8.col-lg-6 {
        order: -1;
    }

    .row.g-4 > .col-lg-9 {
        order: -1;
    }
}

/* ==============================================
   Search Typeahead Dropdown
   ============================================== */

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover,
.search-item.focused {
    background-color: #f8fafc;
    color: #1a73e8;
}

.search-item-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-item-image {
    width: 48px;
    height: 48px;
    border-radius: 0.375rem;
    object-fit: cover;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-item-content {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.search-item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.125rem;
}

.search-item-description {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-category {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ==============================================
   Detail Page Styles
   ============================================== */

.detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.detail-icon-box {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-badge {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-weight: 500;
}

.detail-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.detail-stat-fixed {
    min-width: 120px;
    flex-shrink: 0;
}

.detail-stat-grow {
    flex-grow: 1;
}

.detail-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.4;
}

.detail-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.detail-info-box {
    background: #f8fafc;
    border-left: 3px solid #3b82f6;
    padding: 0.75rem 1rem;
}

.detail-info-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-info-value {
    font-weight: 500;
    color: #334155;
}

.similar-resource-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: border-color 0.2s;
}

.similar-resource-card:hover {
    border-color: #3b82f6;
}

.similar-resource-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.similar-resource-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.similar-resource-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.similar-resource-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.similar-resource-actions .btn {
    font-size: 0.8rem;
}

/* ==============================================
   YouTubers List - 3 Column Layout
   ============================================== */

/* Pagination Active State */
.pagination .page-item.active .page-link {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #ffffff !important;
}

.pagination .page-item.active .page-link:hover {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

.youtuber-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.youtuber-item:last-child {
    border-bottom: none;
}

.youtuber-item:hover {
    background-color: #f8fafc;
}

/* Pagination Styles */
.pagination .page-item {
    margin: 0 0.15rem;
}

/* Force proper layout for description and stats container */
.youtuber-item .col .d-flex.gap-3.align-items-start {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    align-items: flex-start !important;
}

.youtuber-item .col .d-flex.gap-3.align-items-start > .flex-grow-1 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.youtuber-item .col .d-flex.gap-3.align-items-start > .d-flex.gap-2.flex-shrink-0 {
    flex: 0 0 auto !important;
    display: flex !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

.youtuber-rank {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 0.85rem;
    padding-right: 1.5rem;
}

.youtuber-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.youtuber-name {
    color: #1a202c;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.youtuber-name:hover {
    color: #6366f1;
}

.youtuber-tag {
    display: inline-block;
    background-color: #f3f4f6;
    color: #6b7280;
    font-weight: 400;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
}

.youtuber-description {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtuber-country {
    display: inline-block;
    background-color: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.125rem 0.4rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.stat-box {
    background-color: #f1f5f9 !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: 0.25rem !important;
    text-align: center !important;
    min-width: 70px;
    display: block !important;
}

.stat-box .stat-value {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #10b981 !important;
    line-height: 1.2 !important;
}

.stat-box .stat-label {
    font-size: 0.65rem !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    margin-top: 0.125rem !important;
}

/* Mobile Layout for YouTubers List */
@media (max-width: 767px) {
    /* Hide rank on mobile */
    .youtuber-item .col-auto:has(.youtuber-rank) {
        display: none;
    }

    /* Smaller image on mobile */
    .youtuber-image {
        width: 60px !important;
        height: 60px !important;
    }

    /* Row 1: Image + Title side by side */
    .youtuber-item .row {
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .youtuber-item .col-auto:has(.youtuber-image) {
        flex: 0 0 auto;
        width: auto;
        padding-right: 0.75rem !important;
    }

    .youtuber-item .col {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 0 !important;
    }

    /* Title section */
    .youtuber-item .d-flex.align-items-start.justify-content-between {
        flex-direction: column;
        margin-bottom: 0.75rem;
    }

    .youtuber-item .d-flex.align-items-start.justify-content-between > .flex-grow-1 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .youtuber-name {
        font-size: 0.9rem !important;
    }

    /* Tag and country */
    .youtuber-tag,
    .youtuber-country {
        display: inline-block;
        margin-right: 0.5rem;
        margin-top: 0.25rem;
    }

    /* Description and stats - stack vertically */
    .youtuber-item .d-flex.align-items-start.gap-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-top: 0.75rem !important;
    }

    /* Description - show on mobile */
    .youtuber-description {
        display: block !important;
        margin-top: 0;
        margin-bottom: 0.75rem;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Stats boxes - wrap to 2-3 columns on mobile */
    .youtuber-item .d-flex.gap-2.flex-shrink-0 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-top: 0;
        margin-bottom: 0.75rem;
        gap: 0.5rem !important;
        width: 100% !important;
    }

    .stat-box {
        flex: 1 1 calc(33.333% - 0.35rem) !important;
        min-width: 70px !important;
        max-width: calc(33.333% - 0.35rem) !important;
    }

    .stat-box .stat-value {
        font-size: 0.8rem !important;
    }

    .stat-box .stat-label {
        font-size: 0.6rem !important;
    }

    /* Action buttons - centered at bottom */
    .youtuber-item .d-flex.gap-2:has(.btn) {
        justify-content: center !important;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
    }

    /* Filter dropdowns on mobile - stack vertically */
    .card-body .d-flex.flex-column.flex-md-row {
        gap: 1rem !important;
    }

    .card-body .d-flex.gap-2 {
        flex-direction: column !important;
        width: 100%;
    }

    .card-body .d-flex.gap-2 .dropdown {
        width: 100%;
    }

    .card-body .d-flex.gap-2 .dropdown button {
        width: 100% !important;
    }
}

/* ==============================================
   Social Media Icons
   ============================================== */

.social-icon {
    font-size: 1.25rem;
}

.course-icon {
    font-size: 1.25rem;
    color: #8b5cf6;
}

/* ==============================================
   Account Sidebar Styles
   ============================================== */

.account-sidebar-avatar {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.account-sidebar-nav .list-group-item.active,
.account-sidebar-nav .list-group-item.active:hover,
.account-sidebar-nav .list-group-item.active:focus {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
}

.account-sidebar-nav .list-group-item.active span,
.account-sidebar-nav .list-group-item.active i {
    color: #ffffff !important;
}

/* ==============================================
   Button Overrides
   ============================================== */

.btn-danger,
#close-account.btn-danger,
#confirm-delete-account.btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
#close-account.btn-danger:hover,
#close-account.btn-danger:focus,
#close-account.btn-danger:active,
#confirm-delete-account.btn-danger:hover,
#confirm-delete-account.btn-danger:focus,
#confirm-delete-account.btn-danger:active {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}
