/**
 * Website Directory - Main Stylesheet
 * Responsive design for Desktop, Tablet, and Mobile
 */

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    /* Couleurs principales (communes) */
    --primary-color: #FF6B6B;
    --secondary-color: #FF8E53;
    --success-color: #FF6B6B;
    --danger-color: #dc3545;
    --warning-color: #FF8E53;
    --info-color: #FF6B6B;
    --gradient-flame: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);

    /* Effets et transitions */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* THEME DARK (par défaut) */
body[data-theme="dark"],
body:not([data-theme]) {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 107, 107, 0.3);
    --border-color-light: rgba(255, 107, 107, 0.15);
    --hover-bg: rgba(255, 107, 107, 0.1);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --navbar-bg: #000000;
    --footer-bg: #000000;
}

/* THEME LIGHT */
body[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: rgba(255, 107, 107, 0.3);
    --border-color-light: #dee2e6;
    --hover-bg: rgba(255, 107, 107, 0.05);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --navbar-bg: #ffffff;
    --footer-bg: #f8f9fa;
}

/* ========================================
   GENERAL STYLES
   ======================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    min-height: calc(100vh - 200px);
}

.section-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--navbar-bg) !important;
    transition: background-color 0.3s ease;
}

/* Navbar text colors for light theme */
body[data-theme="light"] .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .navbar-brand,
body[data-theme="light"] .nav-link {
    color: var(--text-primary) !important;
}

body[data-theme="light"] .navbar-toggler-icon {
    filter: invert(1);
}

/* Theme Switcher Button */
#theme-switcher {
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#theme-switcher:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05);
}

body[data-theme="light"] #theme-switcher {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body[data-theme="light"] #theme-switcher:hover {
    background-color: var(--hover-bg) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Navbar sizing - Compact on all devices */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.85;
}

/* Desktop: Even more compact */
@media (min-width: 992px) {
    .navbar {
        padding: 0.4rem 0;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background-color: var(--bg-secondary);
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

/* Featured section */
.featured-section,
.category-sites-section {
    background-color: var(--bg-primary);
}

.search-form .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
}

.search-form .form-control {
    border: 1px solid var(--border-color-light);
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.search-form .form-control:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 107, 0.25);
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
}

/* Form controls general */
.form-control,
.form-select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color-light);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.category-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

/* Card Components */
.card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color-light);
    color: var(--text-primary);
}

.card-title,
.card-body h3,
.card-body h6 {
    color: var(--text-primary);
}

.category-icon-large {
    font-size: 3rem;
    line-height: 1;
}

.category-icon-hero {
    font-size: 5rem;
    line-height: 1;
}

/* Responsive: Mobile */
@media (max-width: 575.98px) {
    .category-icon-large {
        font-size: 2.5rem;
    }

    .category-card .card-title {
        font-size: 1rem;
    }
}

/* ========================================
   SITE CARDS
   ======================================== */
.site-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color-light);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

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

.site-card-large {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.site-card-large:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-5px);
}

/* Site page sections */
.site-content,
.sites-section {
    background-color: var(--bg-primary);
}

.site-card-large .card-img-top {
    height: 200px;
    object-fit: cover;
}

.site-favicon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
}

.site-favicon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-favicon-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.site-favicon-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rating {
    font-size: 0.9rem;
}

.rating i {
    font-size: 0.875rem;
}

/* ========================================
   TAGS
   ======================================== */
.tags .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.25rem;
}

/* ========================================
   CATEGORY HEADER
   ======================================== */
.category-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb-section {
    border-bottom: 1px solid var(--border-color-light);
    background-color: var(--bg-secondary) !important;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

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

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

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

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stat-box {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.stat-box h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background-color: #000000 !important;
    color: #ffffff !important;
}

footer h5,
footer p,
footer a,
footer small,
footer .text-light {
    color: #ffffff !important;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    transition: var(--transition);
    display: inline-block;
    padding: 0.25rem 0;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

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

/* ========================================
   UTILITIES
   ======================================== */
.text-light {
    opacity: 0.9;
}

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

.shadow-sm {
    box-shadow: var(--card-shadow) !important;
}

/* Background utilities */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Site page specific breadcrumbs on gradient header */
.site-header .breadcrumb-item,
.site-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
}

.site-header .breadcrumb-item.active {
    color: #ffffff;
}

.site-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Related categories section */
.related-categories {
    background-color: var(--bg-secondary) !important;
}

.related-categories h3 {
    color: var(--text-primary);
}

/* Alert components */
.alert {
    border-color: var(--border-color-light);
}

.alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    color: var(--text-primary);
}

body[data-theme="light"] .alert-info {
    background-color: #cfe2ff;
    border-color: #9ec5fe;
    color: #052c65;
}

/* Badge components */
.badge {
    font-weight: 500;
}

/* Site favicon large container */
.site-favicon-large {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
}

body[data-theme="light"] .site-favicon-large {
    background: white;
}

/* Icon Sizes */
.icon-xs {
    font-size: 1.5rem;
}

.icon-sm {
    font-size: 2rem;
}

.icon-lg {
    font-size: 3rem;
}

.icon-xl {
    font-size: 100px;
}

/* Image Sizes */
.img-20 {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.img-24 {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.img-48 {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.img-64 {
    max-width: 64px;
    max-height: 64px;
}

.img-80 {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Sticky Positioning */
.sticky-admin {
    position: sticky;
    top: 80px;
}

/* Scrollable Container */
.scrollable-list {
    max-height: 600px;
    overflow-y: auto;
}

/* Table Column Widths */
.w-50px {
    width: 50px;
}

.w-80px {
    width: 80px;
}

.w-100px {
    width: 100px;
}

.w-120px {
    width: 120px;
}

.w-150px {
    width: 150px;
}

/* Display Utilities */
.d-none-important {
    display: none !important;
}

/* Progress Bar */
.progress-bar-width-0 {
    width: 0%;
}

/* ========================================
   ERROR PAGE STYLES
   ======================================== */
.error-container {
    padding: 40px 20px;
}

.error-icon {
    animation: wobble 2s infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.display-1 {
    font-size: 8rem;
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 5rem;
    }

    .error-icon .icon-xl {
        font-size: 70px !important;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .category-icon-hero {
        font-size: 4rem;
    }

    .site-card-large .card-img-top {
        height: 180px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0 !important;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .category-icon-hero {
        font-size: 3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .site-card-large .card-img-top {
        height: 150px;
    }

    footer .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand i {
        font-size: 1.3rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stat-box i {
        font-size: 2.5rem !important;
    }

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

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.site-card,
.site-card-large {
    animation: fadeIn 0.5s ease-in-out;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    footer,
    .search-form,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }
}

/* ========================================
   ULTRA COMPACT CATEGORY BOX
   ======================================== */
.category-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.category-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gradient-flame);
    border-bottom: none;
}

.category-box-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.count-badge {
    font-size: 0.85rem;
    padding: 4px 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
}

/* ========================================
   ULTRA COMPACT SITES LIST
   ======================================== */
.sites-ultra-compact {
    padding: 0;
    margin: 0;
}

.site-ultra-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color-light);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.site-ultra-item:last-child {
    border-bottom: none;
}

.site-ultra-item:hover {
    background-color: var(--hover-bg);
    transform: translateX(4px);
}

.site-favicon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-favicon img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
}

.site-mini-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.site-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.site-ultra-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-mini-arrow {
    font-size: 1rem;
    color: var(--primary-color);
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.site-ultra-item:hover .site-mini-arrow {
    color: var(--secondary-color);
    transform: translateX(4px);
}

/* Vote widget mini for homepage */
.site-vote-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
}

.site-vote-mini .vote-hot,
.site-vote-mini .vote-cold {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.site-vote-mini .vote-score-mini {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.site-vote-mini .vote-score-mini.text-success {
    color: var(--success-color);
}

.site-vote-mini .vote-score-mini.text-danger {
    color: var(--danger-color);
}

.view-all-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--hover-bg);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-top: 1px solid var(--border-color-light);
}

.view-all-link:hover {
    background: var(--gradient-flame);
    color: white;
}

/* ========================================
   SITE DETAIL PAGE
   ======================================== */

/* THEME DARK: Gradient flamme avec texte blanc */
body[data-theme="dark"] .bg-gradient,
body:not([data-theme]) .bg-gradient {
    background: var(--gradient-flame);
}

body[data-theme="dark"] .site-header.bg-gradient,
body:not([data-theme]) .site-header.bg-gradient {
    color: #ffffff;
}

body[data-theme="dark"] .site-header.bg-gradient h1,
body[data-theme="dark"] .site-header.bg-gradient .display-5,
body[data-theme="dark"] .site-header.bg-gradient .fw-bold,
body[data-theme="dark"] .site-header.bg-gradient .lead,
body[data-theme="dark"] .site-header.bg-gradient p,
body[data-theme="dark"] .site-header.bg-gradient .breadcrumb-item,
body[data-theme="dark"] .site-header.bg-gradient .breadcrumb-item a,
body[data-theme="dark"] .site-header.bg-gradient i,
body[data-theme="dark"] .site-header.bg-gradient span,
body:not([data-theme]) .site-header.bg-gradient h1,
body:not([data-theme]) .site-header.bg-gradient .display-5,
body:not([data-theme]) .site-header.bg-gradient .fw-bold,
body:not([data-theme]) .site-header.bg-gradient .lead,
body:not([data-theme]) .site-header.bg-gradient p,
body:not([data-theme]) .site-header.bg-gradient .breadcrumb-item,
body:not([data-theme]) .site-header.bg-gradient .breadcrumb-item a,
body:not([data-theme]) .site-header.bg-gradient i,
body:not([data-theme]) .site-header.bg-gradient span {
    color: #ffffff !important;
}

body[data-theme="dark"] .site-header.bg-gradient .breadcrumb-item.active,
body:not([data-theme]) .site-header.bg-gradient .breadcrumb-item.active {
    color: #ffffff !important;
}

body[data-theme="dark"] .site-header.bg-gradient .breadcrumb-item + .breadcrumb-item::before,
body:not([data-theme]) .site-header.bg-gradient .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* THEME LIGHT: Fond clair avec texte foncé */
body[data-theme="light"] .bg-gradient {
    background: var(--bg-secondary);
}

body[data-theme="light"] .site-header.bg-gradient {
    color: var(--text-primary);
}

body[data-theme="light"] .site-header.bg-gradient h1,
body[data-theme="light"] .site-header.bg-gradient .display-5,
body[data-theme="light"] .site-header.bg-gradient .fw-bold,
body[data-theme="light"] .site-header.bg-gradient .lead,
body[data-theme="light"] .site-header.bg-gradient p,
body[data-theme="light"] .site-header.bg-gradient .breadcrumb-item,
body[data-theme="light"] .site-header.bg-gradient .breadcrumb-item a,
body[data-theme="light"] .site-header.bg-gradient i,
body[data-theme="light"] .site-header.bg-gradient span {
    color: var(--text-primary) !important;
}

body[data-theme="light"] .site-header.bg-gradient .breadcrumb-item.active {
    color: var(--text-secondary) !important;
}

body[data-theme="light"] .site-header.bg-gradient .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted) !important;
}

body[data-theme="light"] .site-header.bg-gradient .breadcrumb-item a:hover {
    color: var(--primary-color) !important;
}

/* Vote section in site header */
.site-header .vote-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
}

.site-header .vote-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Light theme adjustments for vote in header */
body[data-theme="light"] .site-header .vote-wrapper {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .site-header .vote-title {
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive vote section in header */
@media (max-width: 991.98px) {
    .site-header .vote-wrapper {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .site-header .vote-wrapper {
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .site-header .vote-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem !important;
    }
}

.site-favicon-large {
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--card-shadow);
}

/* Site actions wrapper (Visit + Vote) */
.site-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.site-actions-wrapper .btn {
    width: auto;
}

/* Responsive: Mobile - Center actions on small screens */
@media (max-width: 991.98px) {
    .site-header-content {
        flex-direction: column !important;
        align-items: center !important;
    }

    .site-header-content > div:first-child {
        margin-bottom: 2rem;
    }

    .site-actions-wrapper {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100%;
        align-items: center;
    }

    .site-actions-wrapper .btn {
        width: 100%;
        text-align: center;
    }

    .site-actions-wrapper .vote-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   VOTE SYSTEM STYLES
   ======================================== */
/* Vote system styles are in /public/assets/css/vote-system.css */

/* Additional vote display styling */
.vote-score-display {
    display: inline-flex;
    align-items: center;
}

.vote-score-display .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
}

/* Vote card styling in sidebar */
.card .vote-container {
    justify-content: center;
}

.card h3 {
    color: var(--text-primary);
    font-weight: 700;
}

/* Make vote section stand out */
.card:has(.vote-container) {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:has(.vote-container):hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

/* "Rate this site" title styling */
.card:has(.vote-container) .card-body h3 {
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

body[data-theme="light"] .card:has(.vote-container) .card-body h3 {
    background: var(--gradient-flame);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BOOTSTRAP OVERRIDES - THEME COLORS
   ======================================== */
/* Primary color - Red Hot */
.btn-primary {
    background-color: #FF6B6B !important;
    border-color: #FF6B6B !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #E55555 !important;
    border-color: #E55555 !important;
}

.btn-outline-primary {
    color: #FF6B6B !important;
    border-color: #FF6B6B !important;
}

.btn-outline-primary:hover {
    background-color: #FF6B6B !important;
    border-color: #FF6B6B !important;
    color: white !important;
}

.bg-primary {
    background-color: #FF6B6B !important;
}

.text-primary {
    color: #FF6B6B !important;
}

.badge.bg-primary {
    background-color: #FF6B6B !important;
}

/* Secondary/Warning color - Orange Flame */
.btn-warning {
    background-color: #FF8E53 !important;
    border-color: #FF8E53 !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #E57E47 !important;
    border-color: #E57E47 !important;
}

.bg-warning {
    background-color: #FF8E53 !important;
}

.text-warning {
    color: #FF8E53 !important;
}

.badge.bg-warning {
    background-color: #FF8E53 !important;
    color: white !important;
}

/* Success color - Red Hot */
.btn-success {
    background-color: #FF6B6B !important;
    border-color: #FF6B6B !important;
}

.btn-success:hover {
    background-color: #E55555 !important;
    border-color: #E55555 !important;
}

.bg-success {
    background-color: #FF6B6B !important;
}

.text-success {
    color: #FF6B6B !important;
}

.badge.bg-success {
    background-color: #FF6B6B !important;
}

/* Info color - Red Hot */
.bg-info {
    background-color: #FF6B6B !important;
}

.text-info {
    color: #FF6B6B !important;
}
