﻿/* ================================================
   XAMPZ — homepage.css
   Compatível com _LayoutPublic.cshtml atualizado
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- RESET / BASE ---------- */
:root {
    --xampz-green: #28a745;
    --xampz-green-dark: #1e7e34;
    --xampz-yellow: #ffd700;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* ---------- NAVBAR PÚBLICO (xampz-nav-link) ----------
   Os estilos de hover com background foram REMOVIDOS
   pois o novo layout usa underline verde em vez de fundo.
   Mantidos apenas para o navbar interno (nav-link-enhanced).
   ------------------------------------------------------- */

/* Nav interno (dashboard/intranet) */
.nav-link-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

    .nav-link-enhanced .nav-icon {
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }

    .nav-link-enhanced:hover {
        background-color: #1B8856;
        border-radius: 10px;
        color: white;
        transform: translateY(-3px);
        transition: all 0.3s ease;
    }

        .nav-link-enhanced:hover .nav-icon {
            transform: scale(1.2);
            transition: transform 0.3s ease;
        }

    .nav-link-enhanced:active,
    .nav-link-enhanced.active {
        background-color: #1B8856;
        color: white;
        border-radius: 10px;
    }

/* Botão warning — hover outline */
.btn-warning:active,
.btn-warning:hover {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid #ffc107 !important;
    box-shadow: none !important;
}

/* ---------- DASHBOARD ICON ---------- */
.dashboard-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--xampz-green), var(--xampz-green-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* ---------- WELCOME CARD ---------- */
.welcome-card {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 50%, #20c997 100%);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.welcome-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.trophy-illustration {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 215, 0, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ---------- STAT MINI ---------- */
.stat-mini {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.bg-success-soft {
    background: rgba(40,167,69,0.15);
}

.bg-primary-soft {
    background: rgba(0,123,255,0.15);
}

.bg-warning-soft {
    background: rgba(255,193,7,0.15);
}

.bg-danger-soft {
    background: rgba(220,53,69,0.15);
}

.bg-info-soft {
    background: rgba(23,162,184,0.15);
}

/* ---------- SECTION HEADER ---------- */
.section-header {
    margin-bottom: 20px;
}

/* ---------- MODERN CARD ---------- */
.modern-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .modern-card:hover {
        box-shadow: 0 5px 30px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

.modern-card-header {
    padding: 25px 30px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-bottom: 1px solid #e9ecef;
}

.modern-card-body {
    padding: 30px;
}

/* ---------- ACTION CARDS ---------- */
.action-card {
    display: block;
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

    .action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

.action-card-success::before {
    background: linear-gradient(135deg, rgba(40,167,69,0.1), rgba(40,167,69,0.05));
}

.action-card-primary::before {
    background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(0,123,255,0.05));
}

.action-card-info::before {
    background: linear-gradient(135deg, rgba(23,162,184,0.1), rgba(23,162,184,0.05));
}

.action-card-warning::before {
    background: linear-gradient(135deg, rgba(255,193,7,0.1), rgba(255,193,7,0.05));
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

    .action-card:hover::before {
        opacity: 1;
    }

.action-card-success:hover {
    border-color: var(--xampz-green);
}

.action-card-primary:hover {
    border-color: #007bff;
}

.action-card-info:hover {
    border-color: #17a2b8;
}

.action-card-warning:hover {
    border-color: #ffc107;
}

.action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.3s ease;
}

.action-card-success .action-icon {
    color: var(--xampz-green);
}

.action-card-primary .action-icon {
    color: #007bff;
}

.action-card-info .action-icon {
    color: #17a2b8;
}

.action-card-warning .action-icon {
    color: #ffc107;
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.action-card-success .action-arrow {
    color: var(--xampz-green);
}

.action-card-primary .action-arrow {
    color: #007bff;
}

.action-card-info .action-arrow {
    color: #17a2b8;
}

.action-card-warning .action-arrow {
    color: #ffc107;
}

.action-card:hover .action-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- DATE BADGE ---------- */
.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

    .date-badge .day {
        font-size: 20px;
        font-weight: bold;
        line-height: 1;
    }

    .date-badge .month {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #6c757d;
    }

.date-badge-live {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    animation: pulse 2s infinite;
}

    .date-badge-live .month {
        color: rgba(255,255,255,0.9);
    }

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40,167,69,0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(40,167,69,0);
    }
}

/* ---------- BADGE SPORT ---------- */
.badge-sport {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.badge-sport-soccer {
    background: rgba(40,167,69,0.15);
    color: var(--xampz-green);
}

.badge-sport-volleyball {
    background: rgba(0,123,255,0.15);
    color: #007bff;
}

.badge-sport-basketball {
    background: rgba(220,53,69,0.15);
    color: #dc3545;
}

/* ---------- TEAMS DISPLAY ---------- */
.teams-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.team-name {
    font-weight: 600;
}

.vs {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* ---------- STATUS BADGE ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-confirmed {
    background: rgba(255,193,7,0.15);
    color: #ff9800;
}

.status-live {
    background: rgba(40,167,69,0.15);
    color: var(--xampz-green);
}

/* ---------- RANKING ---------- */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.3s ease;
}

    .ranking-item:hover {
        background: #e9ecef;
        transform: translateX(5px);
    }

.ranking-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.ranking-silver {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    box-shadow: 0 4px 15px rgba(192,192,192,0.3);
}

.ranking-bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    box-shadow: 0 4px 15px rgba(205,127,50,0.3);
}

.ranking-position {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 18px;
    min-width: 60px;
}

.ranking-gold .ranking-position,
.ranking-silver .ranking-position,
.ranking-bronze .ranking-position {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ranking-position i {
    font-size: 24px;
}

.ranking-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.team-info h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.ranking-gold .team-info h6,
.ranking-silver .team-info h6,
.ranking-bronze .team-info h6 {
    color: white;
}

.ranking-points {
    text-align: right;
}

    .ranking-points .points {
        display: block;
        font-size: 24px;
        font-weight: bold;
        line-height: 1;
    }

.ranking-gold .points,
.ranking-silver .points,
.ranking-bronze .points {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ranking-points small {
    font-size: 11px;
    text-transform: uppercase;
    color: #6c757d;
}

.ranking-gold .ranking-points small,
.ranking-silver .ranking-points small,
.ranking-bronze .ranking-points small {
    color: rgba(255,255,255,0.9);
}

/* ---------- ACTIVITY TIMELINE ---------- */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    position: relative;
    padding-bottom: 20px;
}

    .activity-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 22px;
        top: 50px;
        width: 2px;
        height: calc(100% - 30px);
        background: linear-gradient(to bottom, #e9ecef, transparent);
    }

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

    .activity-header h6 {
        font-weight: 600;
        margin: 0;
    }

.activity-time {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

/* ---------- DISHES (legado) ---------- */
.dishes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.dish {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 10px;
    margin: 20px;
    padding: 15px;
    position: relative;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.312);
    overflow: hidden;
    transition: transform 1.5s;
}

    .dish:hover {
        transform: scale(1.05);
        transition-duration: 1.5s;
    }

.dish-heart {
    position: absolute;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    width: 70px;
    height: 70px;
    right: -10px;
    top: -10px;
    border-radius: 0px 37.5px 0px 42.5px;
    overflow: hidden;
}

/* ---------- GRÁFICOS ---------- */
#modalidades-grafico canvas {
    margin: 10px;
    margin-top: 40px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.312);
    transition: transform 0.5s;
}

    #modalidades-grafico canvas:hover {
        transform: scale(1.01);
    }

.grafic {
    box-shadow: 5px 5px 10px rgba(0,0,0,0.312);
}

.transparent {
    background-image: linear-gradient(to right, rgba(25,135,84,1), transparent);
    margin-left: 0;
    padding-left: 10px;
    width: 100%;
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 786px) {
    .container {
        width: 85%;
        margin: 10px;
    }
}

@media screen and (max-width: 992px) {
    .dish {
        flex: 1 1 calc(100% / 2 - 40px);
    }
}

@media screen and (min-width: 993px) {
    .dish {
        flex: 1 1 calc(100% / 4 - 20px);
    }

    #modalidadesPieChart {
        width: 100%;
        max-width: 100%;
        max-height: 450px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.312);
    }
}

@media (max-width: 768px) {
    .modern-card-header,
    .modern-card-body {
        padding: 20px;
    }

    .action-card {
        padding: 25px 20px;
    }

    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .stat-mini {
        gap: 10px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
