/* Importar fuente Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Variables CSS con los colores del diseño */
:root {
    /* Colores principales */
    --color-primary: #6046D3;
    --color-secondary: #3BB3F4;
    --color-accent: #2FDEFF;
    --color-purple: #7424C2;
    --color-blue: #536ADE;
    --color-pink: #D34696;
    --color-green: #54D346;
    --color-red: #E90F0F;
    
    /* Colores de texto */
    --text-primary: #000000;
    --text-secondary: #717171;
    --text-muted: #8B8B8B;
    --text-white: #FFFFFF;
    
    /* Colores de fondo */
    --bg-white: #FCFCFC;
    --bg-gradient-start: #3BB3F4;
    --bg-gradient-end: #6046D3;
}

/* Estilos base */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
}

/* Tipografías según la guía */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 35px;
    font-weight: 800; /* Extrabold */
    color: var(--color-primary);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500; /* Medium */
    color: var(--text-primary);
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500; /* Medium */
    color: var(--color-purple);
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500; /* Medium */
    color: var(--text-primary);
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400; /* Regular */
    color: var(--text-primary);
}

/* Error message */
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-red);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Asterisco */
.asterisk {
    color: var(--color-red);
    font-size: 14px;
    font-weight: 400;
}

/* Bordes */
.border-white {
    border: 0.5px solid var(--text-white);
}

/* Botones - tamaño 307x42px */
.btn-primary {
    background: var(--color-primary);
    border: none;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    width: 307px;
    height: 42px;
    border-radius: 8px;
}

.btn-secondary {
    background: var(--color-secondary);
    border: none;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-accent {
    background: var(--color-accent);
    border: none;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-logout {
    color: var(--text-white);
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-white);
    padding: 1rem 0;
}

/* Logo styles */
.eventix-logo-with-text {
    text-decoration: none;
}

.eventix-logo-with-text:hover {
    text-decoration: none;
}

/* Título del header para páginas específicas */
.header-title {
    color: var(--text-white);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Barra de búsqueda */
.search-bar {
    background: var(--bg-white);
    border-radius: 25px;
    padding: 12px 20px;
    border: 1px solid rgba(83, 106, 222, 0.2);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Títulos de sección */
.section-title {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 18px;
}

.see-all-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Botón 'Ver más' coherente con el diseño */
.btn-see-all-link {
  background: var(--color-primary);
  color: var(--text-white);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.btn-see-all-link:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

/* Botón limpiar filtro */
.btn-clear-filter {
    background: white;
    color: var(--color-primary);
    border: 2px solid white;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.btn-clear-filter:hover {
    background: var(--bg-white);
    color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

.btn-clear-filter i {
    font-size: 14px;
}

/* Botón filtro por fecha */
.btn-date-filter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-date-filter:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-date-active {
    background: white;
    color: var(--color-primary);
    border: 2px solid white;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
    animation: pulse-date 2s ease-in-out infinite;
}

@keyframes pulse-date {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.6);
    }
}

.btn-date-active:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

/* Tarjetas de eventos */
.event-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(83, 106, 222, 0.2);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
}

.event-info {
    padding: 1rem;
}

.event-title {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 16px;
}

.event-date {
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 400;
}

.event-price {
    color: var(--color-green);
    font-weight: 600;
    font-size: 14px;
}

.event-price.free {
    color: var(--color-pink);
}

/* Categorías */
.categories-swiper {
    padding: 15px 0 20px 0;
    overflow: hidden;
}

/* Posicionar los puntos de paginación debajo del swiper */
.categories-swiper .swiper-pagination {
    position: static;
}

.category-item {
    padding: 5px 0;
}

.category-card-small {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 65px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(83, 106, 222, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.category-card-small:hover::before {
    left: 100%;
}

.category-card-small:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(83, 106, 222, 0.3);
    border-color: var(--color-primary);
}

.category-card-small.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
    border: 3px solid white !important;
    box-shadow: 0 8px 25px rgba(83, 106, 222, 0.6), 0 0 20px rgba(255, 255, 255, 0.5) !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(83, 106, 222, 0.6), 0 0 20px rgba(47, 222, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(83, 106, 222, 0.8), 0 0 30px rgba(47, 222, 255, 0.6);
    }
}

.category-card-small.active::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--color-accent);
    color: var(--color-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    animation: check-bounce 0.5s ease-out;
}

@keyframes check-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.category-card-small.active .category-name {
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.category-card-small.active .category-image-small {
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.category-card-small:active {
    transform: translateY(-1px) scale(0.98);
}

.category-image-small {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.category-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-primary);
}

/* Navegación inferior */
.bottom-nav {
    background: var(--color-primary);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
    text-align: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.nav-item.active {
    color: var(--color-accent);
    font-weight: 500;
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

/* Contenido principal */
.main-content {
    padding-bottom: 80px;
}

/* Para páginas de ancho completo (como event_detail) */
.main-content.full-width-page {
    background: white;
    min-height: 100vh;
}

/* Slider de categorías */
.categories-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    min-width: 200px;
}

/* Clases de utilidad básicas */
.text-light {
    color: var(--text-muted);
}

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

/* Clases adicionales para el detalle del evento */
.w-100 {
    width: 100%;
}

.justify-content-between {
    justify-content: space-between;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.text-accent {
    color: var(--color-accent);
}

.text-green {
    color: var(--color-green);
}

.text-red {
    color: var(--color-red);
} 