/* Coolfit Website Styles */
/* Brand colors based on the Coolfit logo: black background with blue "fit" */
/* Estilos específicos para contenido */

:root {
    --coolfit-primary: #007bff;        /* Blue from "fit" */
    --coolfit-secondary: #000000;      /* Black from logo background */
    --coolfit-accent: #ffffff;         /* White for contrast */
    --coolfit-light-blue: #87CEEB;     /* Sky blue for backgrounds */
    --coolfit-header-blue: #87CEFA;    /* Light sky blue for gradients */
    --coolfit-dark-blue: #1E3A8A;      /* Dark blue for "FIT" text */
    --coolfit-dark-gray: #2c3e50;      /* Dark gray for text */
    --coolfit-light-gray: #f8f9fa;     /* Light gray for backgrounds */
    --coolfit-success: #28a745;        /* Green for success states */
    --coolfit-warning: #ffc107;        /* Yellow for warnings */
    --coolfit-danger: #dc3545;         /* Red for errors */
}

/* Global Styles */
body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--coolfit-dark-gray);
    line-height: 1.6;
}

.coolfit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.coolfit-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.coolfit-btn-primary {
    background: linear-gradient(135deg, var(--coolfit-primary) 0%, #0056b3 100%);
    color: var(--coolfit-accent);
}

.coolfit-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.coolfit-btn-secondary {
    background: var(--coolfit-secondary);
    color: var(--coolfit-accent);
    border: 2px solid var(--coolfit-secondary);
}

.coolfit-btn-secondary:hover {
    background: transparent;
    color: var(--coolfit-secondary);
}

.coolfit-btn-outline {
    background: transparent;
    color: var(--coolfit-primary);
    border: 2px solid var(--coolfit-primary);
}

.coolfit-btn-outline:hover {
    background: var(--coolfit-primary);
    color: var(--coolfit-accent);
}

/* Hero Slider Section */
.coolfit-hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--coolfit-light-blue) 0%, var(--coolfit-accent) 100%);
}

.coolfit-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.coolfit-slider-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.coolfit-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.coolfit-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

/* Overlay para mejor legibilidad del texto sobre las imágenes */
.coolfit-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Fallback colors if images don't load */
.coolfit-slide[data-slide="0"] {
    background-color: #FFD700;
}

.coolfit-slide[data-slide="1"] {
    background-color: #32CD32;
}

.coolfit-slide[data-slide="2"] {
    background-color: #1E90FF;
}

.coolfit-slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.coolfit-slide h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--coolfit-accent);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.coolfit-slide .tagline {
    font-size: 1.25rem;
    color: var(--coolfit-accent);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Slider Navigation - Hidden but functional */
.coolfit-slider-prev,
.coolfit-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--coolfit-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    /* Hide the navigation buttons but keep them functional */
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.coolfit-slider-prev {
    left: 2rem;
}

.coolfit-slider-next {
    right: 2rem;
}

.coolfit-slider-prev:hover,
.coolfit-slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Slider Indicators - Hidden but functional */
.coolfit-slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0 !important; /* Hide the indicators but keep them functional */
    pointer-events: none !important;
    visibility: hidden !important;
    gap: 1rem;
    z-index: 10;
}

.coolfit-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Hide individual indicators but keep them functional */
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.coolfit-indicator.active,
.coolfit-indicator:hover {
    background: var(--coolfit-accent);
    border-color: var(--coolfit-accent);
    transform: scale(1.2);
}

/* Deprecated Hero Section - keep for backward compatibility */
.coolfit-hero {
    background: linear-gradient(135deg, var(--coolfit-light-blue) 0%, var(--coolfit-accent) 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coolfit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/coolfit_website/static/img/hero-pattern.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.coolfit-hero-content {
    position: relative;
    z-index: 2;
}

.coolfit-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--coolfit-secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.coolfit-hero .tagline {
    font-size: 1.25rem;
    color: var(--coolfit-dark-gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Login Page Styles */
.coolfit-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--coolfit-secondary) 0%, var(--coolfit-dark-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coolfit-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/coolfit_website/static/img/login-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.coolfit-login-container {
    background: var(--coolfit-accent);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.coolfit-login-title {
    text-align: center;
    margin-bottom: 2rem;
}

.coolfit-login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coolfit-secondary);
    margin-bottom: 0.5rem;
}

.coolfit-login-logo .fit {
    color: var(--coolfit-primary);
}

.coolfit-login-subtitle {
    color: var(--coolfit-dark-gray);
    font-size: 1rem;
    font-weight: 400;
}

/* Form Styles */
.coolfit-form-group {
    margin-bottom: 1.5rem;
}

.coolfit-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--coolfit-dark-gray);
}

.coolfit-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--coolfit-accent);
}

.coolfit-form-control:focus {
    outline: none;
    border-color: var(--coolfit-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Category Cards */
.coolfit-categories {
    padding: 4rem 0;
    background: var(--coolfit-light-gray);
}

.coolfit-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.coolfit-category-card {
    background: var(--coolfit-accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.coolfit-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.coolfit-category-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--coolfit-light-blue);
    position: relative;
}

/* Overlay for better text readability */
.coolfit-category-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.coolfit-category-content {
    padding: 1.5rem;
}

.coolfit-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--coolfit-secondary);
    margin-bottom: 0.5rem;
}

.coolfit-category-description {
    color: var(--coolfit-dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.coolfit-category-stats {
    color: var(--coolfit-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

/* Badge for product count */
.coolfit-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Slider responsive */
    .coolfit-hero-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .coolfit-slide h1 {
        font-size: 2.5rem;
    }
    
    .coolfit-slide .tagline {
        font-size: 1.1rem;
    }
    
    .coolfit-slide-content {
        padding: 1rem;
    }
    
    .coolfit-slider-prev,
    .coolfit-slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        /* Keep navigation buttons hidden on mobile too */
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
    
    .coolfit-slider-prev {
        left: 1rem;
    }
    
    .coolfit-slider-next {
        right: 1rem;
    }
    
    .coolfit-slider-indicators {
        bottom: 1rem;
        gap: 0.5rem;
        /* Keep indicators hidden on mobile too */
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
    
    .coolfit-indicator {
        width: 10px;
        height: 10px;
        /* Keep individual indicators hidden on mobile too */
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
    
    /* Deprecated hero responsive */
    .coolfit-hero h1 {
        font-size: 2.5rem;
    }
    
    .coolfit-login-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .coolfit-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coolfit-fade-in {
    animation: fadeInUp 0.6s ease;
}

/* Utility Classes */
.coolfit-text-center { text-align: center; }
.coolfit-text-primary { color: var(--coolfit-primary); }
.coolfit-text-secondary { color: var(--coolfit-secondary); }
.coolfit-bg-primary { background-color: var(--coolfit-primary); }
.coolfit-bg-light { background-color: var(--coolfit-light-gray); }
.coolfit-mt-4 { margin-top: 2rem; }
.coolfit-mb-4 { margin-bottom: 2rem; }
.coolfit-py-4 { padding: 2rem 0; }