@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --hof-gold: #ffcc00;
    --hof-gold-rgb: 255, 204, 0;
    --hof-blue: #0071e3;
    --hof-blue-rgb: 0, 113, 227;
    --hof-dark-bg: #1a1a1a;
    --hof-card-bg: #1e1e20;
    --hof-card-border: rgba(255, 255, 255, 0.08);
    --hof-font: 'Outfit', -apple-system, sans-serif;
}

/* Page Titles */
.stitle {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin-bottom: 30px;
}
.stitle span {
    font-family: var(--hof-font);
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
}

/* MVP kolo: stejný typografie jako .stitle, bez spodní linky */
.hof-stitle-mvp-round {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}

/* Záložky kol (Bootstrap nav-tabs, dark / gold) */
.hof-mvp-round-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    gap: 0.15rem;
    scrollbar-width: thin;
}
.hof-mvp-round-tabs .nav-item {
    flex-shrink: 0;
}
.hof-mvp-round-tabs .nav-link {
    font-family: var(--hof-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 0.75rem 0.65rem;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.hof-mvp-round-tabs .nav-link:hover {
    color: rgba(255, 255, 255, 0.75);
    border-bottom-color: rgba(var(--hof-gold-rgb), 0.35);
}
.hof-mvp-round-tabs .nav-link.active {
    color: var(--hof-gold);
    border-bottom-color: var(--hof-gold);
    background: transparent;
}
.hof-mvp-round-tabs .nav-link:focus-visible {
    outline: 2px solid rgba(var(--hof-gold-rgb), 0.6);
    outline-offset: 2px;
}

.hof-tabs-no-border {
    border-bottom: none !important;
}

/* Trofeje/Ocenění list rows */
.hof-awards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .hof-awards-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .hof-awards-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .hof-awards-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hof-award-card {
    position: relative;
    font-family: var(--hof-font);
    background: var(--hof-card-bg);
    border: 1px solid var(--hof-card-border);
    border-radius: 28px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    text-align: center;
}

.hof-award-card:hover {
    border-color: rgba(var(--hof-gold-rgb), 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hof-award-card-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.hof-award-card-league {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
}

.hof-award-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--hof-gold);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.hof-award-card-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 10px 0;
}

.hof-award-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(var(--hof-gold-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(15px);
}

.hof-award-card:hover .hof-award-glow {
    background: radial-gradient(circle, rgba(var(--hof-gold-rgb), 0.25) 0%, transparent 70%);
    filter: blur(20px);
}

.hof-award-card-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.hof-award-card:hover .hof-award-card-logo {
    transform: scale(1.1) rotate(3deg);
}

.hof-award-card-footer {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hof-award-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.hof-award-card-player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.hof-award-card-player-name {
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}

.hof-award-card-player-name:hover {
    color: var(--hof-gold);
}

.hof-award-card-player-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hof-award-row {
    display: none; /* Deprecated, using cards now */
}

.hof-award-player-col {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hof-award-player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hof-award-player-name {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hof-award-player-name:hover {
    color: var(--hof-gold);
}

.hof-award-league-col {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    overflow-wrap: anywhere;
}

.hof-award-trophy-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.hof-award-title {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    max-width: 120px;
    overflow-wrap: anywhere;
}

.hof-award-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.45));
    flex-shrink: 0;
}

/* Premium Card */
.hof-premium-card {
    position: relative;
    font-family: var(--hof-font);
    background: var(--hof-card-bg);
    border: 1px solid var(--hof-card-border);
    border-radius: 32px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    height: 100%;
    z-index: 1;
}

.hof-premium-card:hover {
    border-color: rgba(var(--hof-gold-rgb), 0.3);
}

/* Card Header */
.hof-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.hof-league-label {
    background: var(--hof-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(var(--hof-gold-rgb), 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}
.hof-badge-mvp {
    background: var(--hof-gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(var(--hof-gold-rgb), 0.4);
}

/* Central Hero (The Star & Avatar) */
.hof-hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    position: relative;
    padding: 0 10px;
}

.hof-stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100px;
}

.hof-avatar-center {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hof-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hof-star-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-52%, -50%); /* Subtle tweak for optical center */
    width: 280px;
    height: 280px;
    background: rgba(var(--hof-gold-rgb), 0.12);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 0;
    filter: blur(4px);
    transition: background 0.4s ease, filter 0.4s ease;
}

.hof-premium-card:hover .hof-star-aura {
    background: rgba(var(--hof-gold-rgb), 0.25);
    filter: blur(12px) brightness(1.3);
}

.hof-avatar-circle {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 2;
}
.hof-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Gold Stat Cards */
.hof-stat-gold-card {
    background: linear-gradient(135deg, rgba(var(--hof-gold-rgb), 0.3), rgba(var(--hof-gold-rgb), 0.1));
    border: 1px solid rgba(var(--hof-gold-rgb), 0.3);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 10px 6px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hof-stat-val-big {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.hof-stat-lbl-small {
    display: block;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Identity Section (now as overlay/under avatar) */
.hof-identity {
    text-align: center;
    margin-top: 10px;
    z-index: 3;
    position: relative;
}
.hof-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
.hof-team-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hof-team-grid-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 62px; /* Matches gold card height */
    margin-bottom: 5px;
}
.hof-team-grid-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

/* Table Section */
.hof-table-wrap {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 10px;
}
.hof-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}
.hof-table th {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 5px;
}
.hof-table td {
    padding: 10px;
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}
.hof-table tr td:first-child {
    border-radius: 12px 0 0 12px;
    color: var(--hof-gold);
    width: 45px;
}
.hof-table tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/*
 * Mobile: stejná struktura jako desktop (levý sloupec | střed avatar+jméno | pravý sloupec).
 * Jen menší karty, fonty a mírně menší hvězda/avatar, aby nelezly do hvězdy a střed měl místo.
 */
@media (max-width: 575.98px) {
    .hof-premium-card {
        padding: 14px;
    }
    /* Více místa pod pill „liga“, aby horní cíp hvězdy nelezl pod/na badge */
    .hof-header {
        margin-bottom: 22px;
    }
    .hof-league-label {
        font-size: 0.6rem;
        padding: 4px 10px;
        max-width: min(180px, 100%);
    }

    .hof-hero-layout {
        align-items: center;
        gap: 6px;
        padding: 0 2px;
        padding-top: 6px;
    }

    .hof-stats-column {
        width: 62px;
        flex: 0 0 62px;
        gap: 6px;
    }

    .hof-stat-gold-card {
        min-height: 34px;
        border-radius: 10px;
        padding: 4px 2px;
    }

    .hof-stat-val-big {
        font-size: 0.68rem;
    }
    .hof-stat-lbl-small {
        font-size: 0.38rem;
        letter-spacing: 0.02em;
        margin-top: 1px;
    }

    .hof-team-grid-logo-wrap {
        height: 34px;
        margin-bottom: 2px;
    }

    .hof-team-grid-logo {
        width: 34px;
        height: 34px;
    }

    .hof-avatar-center {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .hof-avatar-wrapper {
        width: 100px;
        height: 96px;
    }

    /* Menší než desktop, aby „cípy“ hvězdy nelezly pod boční karty */
    .hof-star-aura {
        width: 118px;
        height: 118px;
    }

    .hof-avatar-circle {
        width: 64px;
        height: 64px;
        border-width: 3px;
    }

    .hof-identity {
        margin-top: 6px;
        width: 100%;
        max-width: 100%;
        padding: 0 2px;
        box-sizing: border-box;
    }

    .hof-name {
        font-size: 0.95rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hof-team-row {
        font-size: 0.65rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .hof-table-wrap {
        padding: 8px;
    }

    .hof-table th {
        font-size: 0.52rem;
    }

    .hof-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .hof-award-card {
        padding: 16px;
        min-height: 220px;
        border-radius: 24px;
    }

    .hof-award-card-header {
        margin-bottom: 12px;
    }

    .hof-award-card-title {
        font-size: 0.75rem;
    }

    .hof-award-card-league {
        font-size: 0.55rem;
        padding: 2px 8px;
    }

    .hof-award-card-logo {
        width: 70px;
        height: 70px;
    }

    .hof-award-glow {
        width: 100px;
        height: 100px;
    }

    .hof-award-card-footer {
        padding: 8px 12px;
        gap: 10px;
    }

    .hof-award-card-avatar {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .hof-award-card-player-name {
        font-size: 0.82rem;
    }

    .hof-award-card-player-label {
        font-size: 0.5rem;
    }
}
