/* ================================================
   DASHBOARD - Sport Frances
   ================================================ */

/* Welcome Section */
.welcome-section {
    padding: clamp(25px, 5vh, 35px) clamp(16px, 4vw, 24px);
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.user-name {
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 700;
    margin-bottom: clamp(6px, 1.5vh, 10px);
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-text {
    font-size: clamp(15px, 3.8vw, 18px);
    opacity: 0.95;
    font-weight: 400;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.95;
    }
}

/* Back Button con estilo especial */
.back-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    text-decoration: none;
}

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateX(-3px);
    }

    .back-btn svg {
        width: 22px;
        height: 22px;
    }

/* Cards con animación */
.card {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 123, 167, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Empty Cards */
.empty-card {
    text-align: center;
    padding: clamp(28px, 5vh, 38px) clamp(18px, 4vw, 24px);
    opacity: 0.85;
    font-size: clamp(14px, 3.5vw, 16px);
}

.empty-icon {
    margin-bottom: clamp(14px, 3vh, 18px);
    opacity: 0.7;
}

    .empty-icon svg {
        width: clamp(44px, 10vw, 56px);
        height: clamp(44px, 10vw, 56px);
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    }

/* Nav Item Active State Enhancement */
.nav-item.active {
    color: #2d5a7b;
    background: linear-gradient(135deg, rgba(74, 123, 167, 0.1), rgba(91, 143, 185, 0.12));
}

    .nav-item.active .nav-text {
        font-weight: 700;
    }

    .nav-item.active .nav-icon {
        transform: scale(1.1);
    }

.nav-item:hover {
    background: rgba(74, 123, 167, 0.08);
    transform: translateY(-2px);
}

/* Responsive - Landscape móvil */
@media (max-height: 600px) and (orientation: landscape) {
    .welcome-section {
        padding: 15px 16px;
    }

    .user-name {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .welcome-text {
        font-size: 14px;
    }

    .section-title {
        margin: 15px 0 10px;
    }

    .card {
        padding: 14px 16px;
        margin-bottom: 10px;
    }

    .empty-card {
        padding: 20px 16px;
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

/* Tablet y Desktop */
@media (min-width: 768px) {
    .card:hover {
        transform: translateY(-4px);
    }
}

/* Animaciones - Respeta preferencias */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
