/**
 * Styles pour RRC League Showcase
 * Affiche les ligues/divisions d'équipes sous forme de cartes
 *
 * @package RRC_League_Showcase
 */

/* ============================================
   SECTION PRINCIPALE
   ============================================ */

.rrc-league-section {
    margin: 40px 0;
    padding: 0;
    width: 100%;
}

/* ============================================
   EN-TÊTE DE LA SECTION
   ============================================ */

.rrc-league-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.rrc-league-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rrc-league-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GRILLE D'ÉQUIPES
   ============================================ */

.rrc-league-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   CARTE D'ÉQUIPE
   ============================================ */

.rrc-league-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.rrc-league-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BANNIÈRE DE LA CARTE
   ============================================ */

.rrc-league-card-banner {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   LOGO QUI DÉPASSE
   ============================================ */

.rrc-league-card-logo-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    padding: 10px;
    box-sizing: border-box;
}

.rrc-league-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ============================================
   CORPS DE LA CARTE
   ============================================ */

.rrc-league-card-body {
    padding: 70px 25px 25px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

.rrc-team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rrc-team-level {
    font-size: 1rem;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* ============================================
   BOUTON "VOIR L'ÉQUIPE"
   ============================================ */

.rrc-team-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #1a1a1a;
    margin-top: auto;
}

.rrc-team-button:hover,
.rrc-team-button:focus {
    background: #333333;
    color: #ffffff;
    transform: scale(1.05);
    text-decoration: none;
}

.rrc-team-button:active {
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */

@media screen and (max-width: 1024px) {
    .rrc-league-grid {
        gap: 25px;
        padding: 0 15px;
    }
    
    .rrc-league-title {
        font-size: 2rem;
    }
    
    .rrc-league-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    .rrc-league-section {
        margin: 30px 0;
    }
    
    .rrc-league-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .rrc-league-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .rrc-league-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .rrc-league-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .rrc-league-card-banner {
        height: 180px;
    }
    
    .rrc-league-card-logo-wrapper {
        width: 100px;
        height: 100px;
        bottom: -40px;
    }
    
    .rrc-league-card-body {
        padding: 60px 20px 20px 20px;
    }
    
    .rrc-team-name {
        font-size: 1.25rem;
    }
    
    .rrc-team-level {
        font-size: 0.9rem;
    }
    
    .rrc-team-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE - TRÈS PETIT ÉCRAN
   ============================================ */

@media screen and (max-width: 480px) {
    .rrc-league-title {
        font-size: 1.25rem;
    }
    
    .rrc-league-subtitle {
        font-size: 0.875rem;
    }
    
    .rrc-league-card-banner {
        height: 160px;
    }
    
    .rrc-league-card-logo-wrapper {
        width: 90px;
        height: 90px;
        bottom: -35px;
    }
    
    .rrc-league-card-body {
        padding: 55px 15px 15px 15px;
    }
    
    .rrc-team-name {
        font-size: 1.1rem;
    }
}

/* ============================================
   STYLE : CLASSIQUE (comme votre design)
   ============================================ */

.rrc-league-style-classic .rrc-league-card {
    text-align: center;
}

.rrc-league-style-classic .rrc-league-card-image-container {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.rrc-league-style-classic .rrc-league-card-image {
    max-width: 120%;
    max-height: 150%;
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 0;
}

.rrc-league-style-classic .rrc-league-card-banner {
    display: none;
}

.rrc-league-style-classic .rrc-league-card-logo-wrapper {
    display: none;
}

.rrc-league-style-classic .rrc-league-card-body {
    padding: 20px;
}

.rrc-league-style-classic .rrc-team-name {
    font-size: 20px;
    margin: 0;
}

.rrc-league-style-classic .rrc-team-level {
    font-size: 14px;
    color: #777;
    margin: 10px 0 0;
}

.rrc-league-style-classic .rrc-team-button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .rrc-league-style-classic .rrc-league-card-image-container {
        height: 100px;
    }
    
    .rrc-league-style-classic .rrc-league-card-image {
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .rrc-league-style-classic .rrc-league-card-image-container {
        height: 90px;
    }
    
    .rrc-league-style-classic .rrc-league-card-image {
        padding: 6px;
    }
}

/* ============================================
   STYLE : MODERNE
   ============================================ */

.rrc-league-style-modern .rrc-league-card {
    border-radius: 16px;
    overflow: hidden;
}

.rrc-league-style-modern .rrc-league-card-header {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.rrc-league-style-modern .rrc-league-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.rrc-league-style-modern .rrc-league-card-header-logo {
    max-width: 80%;
    max-height: 80%;
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.rrc-league-style-modern .rrc-league-card-banner {
    display: none;
}

.rrc-league-style-modern .rrc-league-card-logo-wrapper {
    display: none;
}

.rrc-league-style-modern .rrc-league-card-body {
    padding: 24px;
    background: #ffffff;
}

.rrc-league-style-modern .rrc-team-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rrc-league-style-modern .rrc-team-level {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 500;
    text-transform: capitalize;
}

.rrc-league-style-modern .rrc-team-button {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    margin-top: 0;
}

@media screen and (max-width: 768px) {
    .rrc-league-style-modern .rrc-league-card-header {
        height: 160px;
    }
    
    .rrc-league-style-modern .rrc-league-card-body {
        padding: 20px;
    }
    
    .rrc-league-style-modern .rrc-team-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .rrc-league-style-modern .rrc-league-card-header {
        height: 140px;
    }
    
    .rrc-league-style-modern .rrc-league-card-body {
        padding: 18px;
    }
    
    .rrc-league-style-modern .rrc-team-name {
        font-size: 18px;
    }
}

/* ============================================
   STYLE : LOGO INTÉGRÉ DANS LA BANNIÈRE
   ============================================ */

.rrc-league-style-integrated .rrc-league-card-banner {
    height: 280px;
    overflow: hidden;
}

.rrc-league-style-integrated .rrc-league-card-logo-wrapper {
    width: 240px;
    height: 240px;
    bottom: -40px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.rrc-league-style-integrated .rrc-league-card-body {
    padding: 120px 25px 25px 25px;
}

@media screen and (max-width: 768px) {
    .rrc-league-style-integrated .rrc-league-card-banner {
        height: 240px;
    }
    
    .rrc-league-style-integrated .rrc-league-card-logo-wrapper {
        width: 180px;
        height: 180px;
        bottom: -50px;
        padding: 15px;
    }
    
    .rrc-league-style-integrated .rrc-league-card-body {
        padding: 100px 20px 20px 20px;
    }
}

@media screen and (max-width: 480px) {
    .rrc-league-style-integrated .rrc-league-card-banner {
        height: 220px;
    }
    
    .rrc-league-style-integrated .rrc-league-card-logo-wrapper {
        width: 160px;
        height: 160px;
        bottom: -45px;
        padding: 12px;
    }
    
    .rrc-league-style-integrated .rrc-league-card-body {
        padding: 90px 15px 15px 15px;
    }
}

/* ============================================
   STYLE : COMPACT
   ============================================ */

.rrc-league-style-compact .rrc-league-card-banner {
    height: 150px;
}

.rrc-league-style-compact .rrc-league-card-logo-wrapper {
    width: 100px;
    height: 100px;
    bottom: -35px;
    padding: 8px;
}

.rrc-league-style-compact .rrc-league-card-body {
    padding: 50px 20px 20px 20px;
}

.rrc-league-style-compact .rrc-team-name {
    font-size: 1.25rem;
}

.rrc-league-style-compact .rrc-team-level {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.rrc-league-style-compact .rrc-team-button {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================
   STYLE : MINIMALISTE
   ============================================ */

.rrc-league-style-minimal .rrc-league-card {
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.rrc-league-style-minimal .rrc-league-card:hover {
    border-color: #1a1a1a;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rrc-league-style-minimal .rrc-league-card-banner {
    height: 180px;
    border-bottom: 2px solid #e5e7eb;
}

.rrc-league-style-minimal .rrc-league-card-logo-wrapper {
    width: 100px;
    height: 100px;
    bottom: -40px;
    border: 3px solid #ffffff;
    padding: 8px;
}

.rrc-league-style-minimal .rrc-league-card-body {
    padding: 60px 25px 25px 25px;
}

.rrc-league-style-minimal .rrc-team-button {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.rrc-league-style-minimal .rrc-team-button:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* ============================================
   VARIANTES OPTIONNELLES
   ============================================ */

/* Si vous voulez 3 colonnes sur grand écran, décommentez : */
/*
@media screen and (min-width: 1200px) {
    .rrc-league-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
*/

