/**
 * Match Split Section — Diagonal Féminin / Masculin
 */

/* =========================================
   OUTER SECTION
   ========================================= */
.match-split-section {
    overflow: hidden;
    position: relative;
}

/* =========================================
   SPLIT CONTAINER
   ========================================= */
.match-split {
    display: flex;
    flex-direction: column;
    min-height: 480px;
    position: relative;
}

@media (min-width: 768px) {
    .match-split {
        flex-direction: row;
        min-height: 520px;
    }
}

/* =========================================
   PANELS
   ========================================= */
.match-split__panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-2xl);
}

/* Couleurs différenciées */
.match-split__panel--feminin {
    background: linear-gradient(140deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
}

.match-split__panel--masculin {
    background: linear-gradient(140deg, #0f2044 0%, #1e3a8a 60%, #1d4ed8 100%);
}

/* Motif SVG de fond */
.match-split__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-rule='evenodd'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cline x1='10' y1='30' x2='50' y2='30' stroke='%23ffffff' stroke-width='0.5'/%3E%3Cline x1='30' y1='10' x2='30' y2='50' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Ligne diagonale — pseudo sur le panneau féminin côté desktop */
@media (min-width: 768px) {
    .match-split__panel--feminin::after {
        content: '';
        position: absolute;
        top: 0;
        right: -40px;
        width: 80px;
        height: 100%;
        background: inherit;
        clip-path: polygon(0 0, 0% 100%, 100% 100%);
        z-index: 2;
        pointer-events: none;
    }

    .match-split__panel--masculin {
        clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
        margin-left: -40px;
    }
}

/* Mobile : séparateur horizontal avec biais */
@media (max-width: 767px) {
    .match-split__panel--feminin {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
        padding-bottom: calc(var(--space-3xl) + 24px);
    }

    .match-split__panel--masculin {
        clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
        margin-top: -24px;
        padding-top: calc(var(--space-3xl) + 24px);
    }
}

/* =========================================
   PANEL INNER CONTENT
   ========================================= */
.match-split__panel-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    width: 100%;
    max-width: 420px;
}

/* Genre header */
.match-split__header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.match-split__genre-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    flex-shrink: 0;
}

.match-split__genre-icon svg {
    width: 1rem;
    height: 1rem;
}

.match-split__genre-label {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
}

/* =========================================
   MATCH CARD
   ========================================= */
.match-split__card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.match-split__card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.match-split__card-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-split__card-comp {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-warm);
    background: rgba(245, 158, 11, 0.12);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
}

/* Teams row */
.match-split__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.match-split__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.match-split__team-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.match-split__team-badge--home {
    background: #fff;
    color: var(--color-royal-800);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.match-split__team-badge--away {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.match-split__team-name {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.match-split__vs {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Location */
.match-split__location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.match-split__location svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
}

/* Empty state */
.match-split__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-xl);
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
}

.match-split__empty svg {
    width: 2rem;
    height: 2rem;
    opacity: 0.4;
}

.match-split__empty p {
    font-size: 0.875rem;
    font-style: italic;
}

/* CTA link */
.match-split__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.match-split__cta:hover {
    color: #fff;
}

.match-split__cta svg {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s ease;
}

.match-split__cta:hover svg {
    transform: translateX(3px);
}

/* =========================================
   DIVIDER BADGE (centre)
   ========================================= */
.match-split__divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 767px) {
    .match-split__divider {
        top: 50%;
        left: 50%;
    }
}

.match-split__divider-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.15);
}

.match-split__divider-badge svg {
    width: 1.75rem;
    height: 1.75rem;
}
