/* ============================================
   VELOASTRAL - BASE STYLES
   Tema oscuro y misterioso para VeloAstral
   ============================================ */

/* ==================== VARIABLES CSS ==================== */
:root {
    /* Colores principales - Paleta mística */
    --mystic-primary: #2D1B69;        /* Púrpura profundo */
    --mystic-secondary: #1A0B2E;      /* Violeta muy oscuro */
    --mystic-accent: #7209B7;         /* Púrpura vibrante */
    --mystic-gold: #FFD700;           /* Oro místico */
    --mystic-silver: #C0C0C0;         /* Plata lunar */
    
    /* Colores de fondo */
    --bg-primary: #0F0A1E;            /* Negro cósmico */
    --bg-secondary: #1A0B2E;          /* Púrpura muy oscuro */
    --bg-tertiary: #2D1B69;           /* Púrpura medio */
    --bg-card: rgba(42, 28, 99, 0.7); /* Púrpura con transparencia */
    --bg-gradient: linear-gradient(135deg, #0F0A1E 0%, #2D1B69 50%, #1A0B2E 100%);
    
    /* Colores de texto */
    --text-primary: #FFFFFF;          /* Blanco puro */
    --text-secondary: #E6E6FA;        /* Lavanda claro */
    --text-muted: #9B9B9B;            /* Gris medio */
    --text-accent: #FFD700;           /* Dorado para destacar */
    
    /* Efectos y bordes */
    --border-mystic: 1px solid rgba(255, 215, 0, 0.3);
    --shadow-mystic: 0 4px 20px rgba(114, 9, 183, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glow-effect: 0 0 20px rgba(255, 215, 0, 0.5);
    
    /* Tipografías */
    --font-primary: 'Cinzel', serif;     /* Para títulos */
    --font-secondary: 'Crimson Text', serif; /* Para contenido */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==================== CONFIGURACIÓN BASE ==================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--mystic-accent);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mystic-gold);
}

/* ==================== TIPOGRAFÍA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2rem;
    color: var(--mystic-gold);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== NAVEGACIÓN ==================== */
.mystic-navbar {
    background: rgba(15, 10, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: var(--border-mystic);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mystic-gold) !important;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(45deg, var(--mystic-gold), var(--mystic-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mystic-logo {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--mystic-gold) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mystic-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ==================== DROPDOWNS ==================== */
.mystic-dropdown {
    background: rgba(26, 11, 46, 0.95) !important;
    backdrop-filter: blur(15px);
    border: var(--border-mystic);
    border-radius: 10px;
    box-shadow: var(--shadow-mystic);
    padding: 0.5rem 0;
}

.dropdown-menu-lg {
    min-width: 400px;
}

.dropdown-menu-xl {
    min-width: 500px;
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.dropdown-item:hover {
    background: rgba(114, 9, 183, 0.3) !important;
    color: var(--mystic-gold) !important;
    transform: translateX(5px);
}

.dropdown-header {
    color: var(--mystic-gold) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem 0.5rem;
    margin-bottom: 0;
}

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

/* Mejoras para el hover en dropdowns */
.dropdown:hover .dropdown-menu {
    animation: mysticFadeIn 0.3s ease-in-out;
}

@keyframes mysticFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transiciones suaves */
.dropdown-menu {
    transition: all 0.3s ease;
}

.dropdown-toggle {
    transition: color 0.2s ease;
}

.dropdown-toggle:hover {
    color: var(--mystic-gold) !important;
}

.dropdown-divider {
    border-color: rgba(255, 215, 0, 0.2);
    margin: 0.5rem 0;
}

/* ==================== CONTENIDO PRINCIPAL ==================== */
.mystic-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ==================== CARDS Y COMPONENTES ==================== */
.card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(15px);
    border: var(--border-mystic);
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-effect), var(--shadow-card);
    border-color: var(--mystic-gold);
}

.card-header {
    background: rgba(45, 27, 105, 0.8) !important;
    border-bottom: var(--border-mystic);
    color: var(--text-primary);
    font-weight: 600;
}

.card-body {
    color: var(--text-secondary);
}

.card-title {
    color: var(--mystic-gold);
    font-family: var(--font-primary);
    font-weight: 600;
}

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

/* ==================== BOTONES ==================== */
.btn-primary {
    background: linear-gradient(45deg, var(--mystic-accent), var(--mystic-primary));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-effect);
    background: linear-gradient(45deg, var(--mystic-gold), var(--mystic-accent));
}

.btn-outline-primary {
    color: var(--mystic-gold);
    border: 2px solid var(--mystic-gold);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--mystic-gold);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--glow-effect);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--mystic-accent);
    border-color: var(--mystic-accent);
    color: var(--text-primary);
}

/* ==================== BADGES ==================== */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--mystic-accent);
    color: var(--text-primary);
}

.badge-secondary {
    background: var(--mystic-primary);
    color: var(--text-primary);
}

.badge-info {
    background: var(--mystic-gold);
    color: var(--bg-primary);
}

.badge-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: var(--text-primary);
}

.badge-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: var(--bg-primary);
}

.badge-danger {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
    color: var(--text-primary);
}

.badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-lg {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
}

/* ==================== PROGRESS BARS ==================== */
.progress {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--mystic-accent), var(--mystic-gold));
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==================== TABLAS ==================== */
.table {
    color: var(--text-secondary);
}

.table thead th {
    background: var(--mystic-primary);
    color: var(--mystic-gold);
    border-color: rgba(255, 215, 0, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-color: rgba(255, 255, 255, 0.1);
}

.table tbody tr:hover {
    background: rgba(114, 9, 183, 0.2);
}

.table-borderless td {
    border: none;
    padding: 0.75rem 0.5rem;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumb {
    background: rgba(45, 27, 105, 0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
}

.breadcrumb-item a {
    color: var(--mystic-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

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

/* ==================== ALERTS ==================== */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid var(--mystic-gold);
}

.alert-info {
    background: rgba(114, 9, 183, 0.2);
    color: var(--text-secondary);
    border-left-color: var(--mystic-accent);
}

/* ==================== FOOTER ==================== */
.mystic-footer {
    background: var(--bg-primary);
    border-top: var(--border-mystic);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    color: var(--mystic-gold);
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--mystic-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mystic-accent);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--mystic-gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==================== EFECTOS ESPECIALES ==================== */
.text-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.box-glow {
    box-shadow: 0 0 20px rgba(114, 9, 183, 0.5);
}

.mystic-gradient-text {
    background: linear-gradient(45deg, var(--mystic-gold), var(--mystic-silver), var(--mystic-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== ELEMENTOS ESPECÍFICOS ==================== */
.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-primary);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-center .display-1,
.text-center .display-4 {
    margin-bottom: 1.5rem;
}

/* Símbolos zodiacales grandes */
.zodiac-symbol {
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    filter: drop-shadow(0 0 10px rgba(114, 9, 183, 0.5));
}

/* Contenedores especiales */
.mystic-container {
    background: var(--bg-card);
    border: var(--border-mystic);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .dropdown-menu-lg {
        min-width: 300px;
    }
    
    .dropdown-menu-xl {
        min-width: 300px;
        max-height: 60vh;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .mystic-logo {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    .dropdown-menu-lg {
        min-width: 250px;
    }
    
    .dropdown-menu-xl {
        min-width: 250px;
        max-height: 50vh;
    }
    
    .dropdown-menu-lg .row {
        flex-direction: column;
    }
    
    .dropdown-menu-lg .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .mystic-main {
        padding: 1rem 0;
    }
    
    .mystic-footer {
        padding: 2rem 0 1rem;
    }
}

/* ==================== ANIMACIONES ==================== */
@keyframes mysticGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

@keyframes mysticFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mystic-logo {
    animation: mysticGlow 3s ease-in-out infinite;
}

/* Animación para cards */
.card {
    animation: mysticFloat 6s ease-in-out infinite;
}

.card:nth-child(2n) {
    animation-delay: -3s;
}

/* ==================== UTILIDADES ==================== */
.text-mystic-gold {
    color: var(--mystic-gold) !important;
}

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

.bg-mystic-card {
    background: var(--bg-card) !important;
}

.border-mystic {
    border: var(--border-mystic) !important;
}

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

.glow-effect {
    box-shadow: var(--glow-effect) !important;
}

/* ==================== ESTADOS DE HOVER ESPECÍFICOS ==================== */
.navbar-brand:hover .mystic-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
}

.card-title:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Efecto para elementos interactivos */
.interactive-element {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* ==================== ESTILOS PARA ENERGÍAS DIARIAS ==================== */
.energy-card {
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.energy-card:hover {
    border-color: var(--mystic-gold);
    box-shadow: 0 8px 25px rgba(114, 9, 183, 0.2);
    transform: translateY(-3px);
}

.zodiac-symbol-small {
    font-size: 1.2rem;
    color: var(--mystic-gold);
}

.energy-bar-container {
    margin-bottom: 0.5rem;
}

.energy-card .card-header {
    background: linear-gradient(135deg, var(--mystic-purple), #8e44ad);
    color: white;
    border-bottom: 2px solid var(--mystic-gold);
}

.energy-card .progress {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.energy-card .progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Animación para las barras de energía */
@keyframes energyPulse {
    0% { box-shadow: 0 0 0 0 rgba(114, 9, 183, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(114, 9, 183, 0); }
    100% { box-shadow: 0 0 0 0 rgba(114, 9, 183, 0); }
}

.energy-card:hover .progress-bar {
    animation: energyPulse 2s infinite;
}

/* ==================== DROPDOWN DOS COLUMNAS (Horóscopos) ==================== */
.dropdown-menu-horoscopes {
    min-width: 500px !important;
    padding: 0 !important;
}

.horoscopes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.horoscopes-column {
    padding: 0.5rem;
    list-style: none;
}

.horoscopes-column:first-child {
    border-right: 1px solid rgba(255, 215, 0, 0.2);
}

.horoscopes-column li {
    list-style: none;
}

.horoscopes-column .dropdown-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.horoscopes-column .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive: en móvil volver a una columna */
@media (max-width: 768px) {
    .dropdown-menu-horoscopes {
        min-width: 100% !important;
    }
    
    .horoscopes-grid {
        grid-template-columns: 1fr;
    }
    
    .horoscopes-column:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }
}

/* ==================== DROPDOWN 4 COLUMNAS (Signos del Zodiaco) ==================== */
.dropdown-menu-zodiac {
    min-width: 700px !important;
    padding: 0 !important;
}

.zodiac-header {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.05);
}

.zodiac-header li {
    list-style: none;
}

.zodiac-header .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--mystic-gold);
}

.zodiac-header .dropdown-item:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0.5rem 0;
}

.zodiac-column {
    padding: 0.5rem;
    list-style: none;
    border-right: 1px solid rgba(255, 215, 0, 0.1);
}

.zodiac-column:last-child {
    border-right: none;
}

.zodiac-column li {
    list-style: none;
}

.zodiac-column .dropdown-header {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.zodiac-column .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: normal;
}

.zodiac-column .dropdown-item small {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.15rem;
}

/* Responsive: en tablet 2 columnas, en móvil 1 columna */
@media (max-width: 992px) {
    .dropdown-menu-zodiac {
        min-width: 450px !important;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zodiac-column:nth-child(2) {
        border-right: none;
    }
    
    .zodiac-column:nth-child(1),
    .zodiac-column:nth-child(2) {
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .dropdown-menu-zodiac {
        min-width: 100% !important;
    }
    
    .zodiac-grid {
        grid-template-columns: 1fr;
    }
    
    .zodiac-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }
    
    .zodiac-column:last-child {
        border-bottom: none;
    }
}
