/* ===== A11y Auditor - Main CSS ===== */
/* Este archivo importa todos los módulos */

@import url('./modules/variables.css');
@import url('./modules/base.css');
@import url('./modules/components/navbar.css');
@import url('./modules/components/cards.css');
@import url('./modules/components/buttons.css');
@import url('./modules/components/forms.css');
@import url('./modules/components/badges.css');
@import url('./modules/components/code.css');
@import url('./modules/components/rating.css');
@import url('./modules/components/contrast.css');
@import url('./modules/responsive/tablet.css');
@import url('./modules/responsive/mobile.css');

/* ===== UTILITIES ===== */
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

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

/* ===== TABS ===== */
.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--bs-primary);
}

/* ===== HELP LINK ===== */
.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.help-link:hover {
    text-decoration: underline;
    color: #1b1b1b;
}

/* ===== BOTONES ICONO COMPARTIDOS ===== */
.btn-coffee-icon,
.btn-theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-coffee-icon i,
.btn-theme-icon i {
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

/* ===== THEME BUTTON ESPECÍFICO ===== */
.btn-theme-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-theme-icon i {
    color: #FFDD00;
    /* Amarillo para el icono */
}

.btn-theme-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px -4px rgba(0, 0, 0, 0.3);
}

.btn-theme-icon:hover i {
    transform: scale(1.1);
    color: #FFDD00;
    /* Mantiene el amarillo */
}

/* Modo oscuro - El botón de tema cambia */
[data-bs-theme="dark"] .btn-theme-icon {
    background: linear-gradient(135deg, #FFDD00 0%, #FDB813 100%);
    box-shadow: 0 4px 6px -2px rgba(253, 184, 19, 0.3);
}

[data-bs-theme="dark"] .btn-theme-icon i {
    color: #2D1B0E;
    /* Icono oscuro sobre fondo amarillo */
}

[data-bs-theme="dark"] .btn-theme-icon:hover {
    background: linear-gradient(135deg, #FDB813 0%, #FFDD00 100%);
    box-shadow: 0 8px 12px -4px rgba(253, 184, 19, 0.5);
}

[data-bs-theme="dark"] .btn-theme-icon:hover i {
    color: #2D1B0E;
}

[data-bs-theme="dark"] .btn-coffee-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .btn-coffee-icon i {
    color: #FFDD00;
}

[data-bs-theme="dark"] .btn-coffee-icon:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    box-shadow: 0 8px 12px -4px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .btn-coffee-icon:hover i {
    color: #FFDD00;
}

/* Tooltip compartido */
.btn-theme-icon {
    position: relative;
}

.btn-theme-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2D1B0E;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-theme-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/* Dark mode tooltips */
[data-bs-theme="dark"] .btn-theme-icon::after {
    background: #FFDD00;
    color: #2D1B0E;
}

/* Estado activo compartido */
.btn-theme-icon:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Estilos para el contenedor de filtros colapsable */
#toggleFiltersBtn {
    transition: all 0.2s ease;
}

#toggleFiltersBtn:hover {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Animación suave al colapsar/expandir */
#filtersSection {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#filtersSection[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-theme-icon {
        width: 36px;
        height: 36px;
    }

    .btn-theme-icon i {
        font-size: 1.1rem;
    }
}