:root {
    --black: #0A0A0A;
    --white: #FFFFFF;
    --red: #FB082D;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    height: 100dvh; /* Force exactly 1 viewport height */
    overflow: hidden; /* No scroll allowed */
    display: flex;
    flex-direction: column;
    /* Brutalist grid background pattern */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* Header */
.header {
    padding: 2vh 0;
    border-bottom: 4px solid var(--white);
    background-color: var(--black);
    text-align: center;
    flex-shrink: 0;
}

.logo {
    height: clamp(30px, 5vh, 50px);
    width: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0; /* Critical for flex children to not cause overflow */
    padding: 2vh 0;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.5vh 1.5vh;
    background-color: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vh, 1.5rem);
    letter-spacing: 2px;
    border: 3px solid var(--white);
    box-shadow: 4px 4px 0 0 var(--white);
    margin-bottom: 2vh;
    text-transform: uppercase;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vh, 6rem);
    line-height: 0.9;
    margin-bottom: 1.5vh;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.highlight {
    color: var(--red);
    display: inline-block;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.5vh;
    left: 0;
    width: 100%;
    height: clamp(4px, 1vh, 8px);
    background-color: var(--red);
    z-index: -1;
}

.description {
    font-size: clamp(0.9rem, 2vh, 1.25rem);
    max-width: 700px;
    margin: 0 auto 3vh;
    line-height: 1.4;
    font-weight: 400;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    width: 100%;
    flex: 1;
    min-height: 0; /* Prevent overflow */
}

/* Brutalist Cards */
.brutalist-card {
    background-color: var(--black);
    border: 4px solid var(--white);
    box-shadow: 8px 8px 0 0 var(--red);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.brutalist-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 0 var(--red);
}

.card-header {
    padding: 2vh 2vw;
    border-bottom: 4px solid var(--white);
    text-align: left;
    flex-shrink: 0;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vh, 3rem);
    letter-spacing: 2px;
    margin-bottom: 1vh;
    line-height: 1;
}

.card-header p {
    font-size: clamp(0.8rem, 1.5vh, 1.1rem);
    color: #e5e5e5;
    line-height: 1.3;
}

.mockup-container {
    padding: 2vh 2vw;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Mockups common scaling container */
.mockup-player-card, .mockup-table {
    border: 3px solid var(--black);
    box-shadow: 6px 6px 0 0 var(--black);
    background-color: var(--white);
    color: var(--black);
    /* Auto scale down to fit container */
    max-height: 100%;
    max-width: 100%;
}

/* Mockup: Player Card (Fantasy) */
.mockup-player-card {
    width: 180px; /* Base width, scales down via flex/max-width if needed */
    display: flex;
    flex-direction: column;
}

.player-top {
    display: flex;
    justify-content: space-between;
    padding: 0.5vh 1vh;
    background-color: var(--red);
    color: var(--white);
    border-bottom: 3px solid var(--black);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vh, 1.25rem);
}

.player-img-placeholder {
    height: clamp(60px, 12vh, 120px);
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid var(--black);
}

.player-img-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.2;
}

.player-bottom {
    padding: 1vh;
    text-align: center;
}

.player-name {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.2vh, 1.5rem);
    line-height: 1;
    margin-bottom: 0.5vh;
}

.player-price {
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vh, 1.1rem);
}

/* Mockup: Standings Table (Datos) */
.mockup-table {
    width: 100%;
    max-width: 280px;
    font-size: clamp(0.8rem, 1.6vh, 1rem);
}

.table-row {
    display: flex;
    padding: 0.8vh 1vh;
    border-bottom: 2px solid var(--black);
    font-weight: 600;
    align-items: center;
}

.table-row.border-none {
    border-bottom: none;
}

.table-head {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vh, 1.25rem);
    border-bottom: 3px solid var(--black);
}

.col-pos { width: 30px; text-align: center; }
.col-team { flex: 1; padding-left: 1vh; font-family: var(--font-heading); letter-spacing: 1px; }
.col-pts { width: 40px; text-align: right; font-weight: 800; }

/* Footer */
.footer {
    padding: 1.5vh 0;
    text-align: center;
    border-top: 4px solid var(--white);
    background-color: var(--black);
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vh, 1.25rem);
    flex-shrink: 0;
}

/* Responsive (Mobile view adjustments for NO SCROLL 100vh) */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 2vh;
    }
    
    .brutalist-card {
        flex-direction: row; /* Horizontal layout for mobile cards to save vertical space! */
        align-items: stretch;
    }
    
    .card-header {
        flex: 1;
        border-bottom: none;
        border-right: 4px solid var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.5vh 3vw;
    }
    
    .mockup-container {
        flex: 0.8;
        padding: 1.5vh;
    }
    
    .mockup-player-card {
        width: 100%;
    }
    
    .title {
        font-size: clamp(2.2rem, 6vh, 4rem);
    }
}

@media (max-width: 480px) {
    /* If screen is extremely narrow, tweak slightly, but keep row layout to avoid vertical scroll */
    .card-header h2 {
        font-size: clamp(1.2rem, 3.5vh, 2rem);
    }
    .card-header p {
        font-size: clamp(0.7rem, 1.3vh, 1rem);
    }
}
