/* ===================================================================
   Gimnasio App — Home Menu (App Sport Frances)
   Glass-morphism cards: white icons/text on semi-transparent cards
   =================================================================== */

.home-menu-page {
    padding: 20px 16px 100px;
}

.home-greeting {
    margin-bottom: 24px;
    padding: 0 4px;
}

.home-greeting h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
}

.home-greeting p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

/* ===================================================================
   HERO EVENT CARD — Próximo evento destacado
   =================================================================== */

.hero-event-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 160px;
    margin-bottom: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-event-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.hero-event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.hero-event-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}

.hero-event-bg-default {
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.hero-event-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}

.hero-event-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.hero-event-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.hero-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.hero-event-meta i {
    margin-right: 4px;
}

.hero-event-excerpt {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Skeleton (loading state) --- */
.hero-event-loading {
    pointer-events: none;
}

.hero-event-skeleton {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.skeleton-line {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.08) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-title {
    height: 22px;
    width: 75%;
}

.skeleton-meta {
    height: 14px;
    width: 55%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================================================
   WIDGETS ROW — Horizontal scroll, glass cards
   =================================================================== */

.home-widgets-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-widgets-row::-webkit-scrollbar {
    display: none;
}

.home-widget {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.home-widget:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.25);
}

.home-widget > i {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.home-widget-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-widget-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.65);
}

.home-widget-value {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-widget-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===================================================================
   MODULE GRID — 2 columns, 12 items
   =================================================================== */

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Glass Card --- */
.module-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 28px 12px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    animation: moduleSlideUp 0.4s ease-out both;
}

.module-card:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stagger entrance — support up to 12 items */
.module-card:nth-child(1) { animation-delay: 0.02s; }
.module-card:nth-child(2) { animation-delay: 0.06s; }
.module-card:nth-child(3) { animation-delay: 0.1s; }
.module-card:nth-child(4) { animation-delay: 0.14s; }
.module-card:nth-child(5) { animation-delay: 0.18s; }
.module-card:nth-child(6) { animation-delay: 0.22s; }
.module-card:nth-child(7) { animation-delay: 0.26s; }
.module-card:nth-child(8) { animation-delay: 0.3s; }
.module-card:nth-child(9) { animation-delay: 0.34s; }
.module-card:nth-child(10) { animation-delay: 0.38s; }
.module-card:nth-child(11) { animation-delay: 0.42s; }
.module-card:nth-child(12) { animation-delay: 0.46s; }

@keyframes moduleSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Icon --- */
.module-icon {
    font-size: 32px;
    color: white;
    line-height: 1;
}

/* --- Title --- */
.module-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.2;
}

/* --- Responsive --- */
@media (min-width: 400px) {
    .module-card {
        padding: 32px 16px 26px;
    }

    .module-icon {
        font-size: 36px;
    }

    .module-title {
        font-size: 14px;
    }
}
