
/* =========================================
   MODERN HOME DESIGN - 2024 REFRESH
   ========================================= */

/* --- Variables & Reset --- */
:root {
    --primary-color: #e81f3e;
    --primary-dark: #c41e3a;
    --secondary-color: #171e36;
    --secondary-light: #2b334a;
    --text-color: #333;
    --text-light: #7c859a;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.1);
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

.wf100 { width: 100%; float: left; }
.p80 { padding: 80px 0; }
.p60 { padding: 60px 0; }
.bg-light { background-color: var(--bg-light) !important; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    margin-top: 0;
}

/* --- Section Titles --- */
.section-title {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}
.section-title h3 {
    font-size: 32px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title h3:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-title p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Slider Tabs (Stats Bar) --- */
.slider-tabs {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}
.slider-tabs .container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
    border: none;
}
.slider-tabs ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.slider-tabs ul li {
    border-right: 1px solid #eee;
    padding: 0;
}
.slider-tabs ul li:last-child {
    border: 0;
}
.slidetab-box {
    padding: 30px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.slidetab-box:hover {
    background: var(--bg-light);
}
.slidetab-box:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.slidetab-box:hover:after {
    width: 100%;
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}
.slidetab-box:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}
.stat-tournaments .stat-icon { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.stat-leagues .stat-icon { background: linear-gradient(135deg, #00b4db, #0083b0); }
.stat-players .stat-icon { background: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-matches .stat-icon { background: linear-gradient(135deg, #fce38a, #f38181); }

.stat-content h6 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
}
.stat-content h6 a {
    color: var(--secondary-color);
    text-decoration: none;
}
.stat-content strong {
    display: block;
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 2px;
}
.stat-content p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* --- Next Match Widget --- */
.next-match-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: none;
}
.next-match-widget .title {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0;
}
.nmw-wrap {
    padding: 30px;
}
.match-teams-vs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px;
    margin: 0;
    list-style: none;
}
.match-teams-vs li.team-logo {
    flex: 1;
    text-align: center;
}
.match-teams-vs li.team-logo img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.match-teams-vs li.team-logo:hover img {
    transform: scale(1.1);
}
.match-teams-vs li.team-logo strong {
    display: block;
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 700;
}
.match-teams-vs li.mvs {
    margin: 0 15px;
}
.match-teams-vs .vs {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 18px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}
.nmw-txt {
    text-align: center;
    padding: 20px 0;
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
    margin-bottom: 20px;
    list-style: none;
}
.nmw-txt li {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 15px;
}
.nmw-txt strong {
    color: var(--primary-color);
    text-transform: uppercase;
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}
.buy-ticket a {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 31, 62, 0.3);
}
.buy-ticket a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 31, 62, 0.4);
}

/* --- Upcoming Matches List --- */
.upcoming-matches-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 100%;
}
.upcoming-matches-container .title {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0;
}
.upcoming-matches-list {
    padding: 20px;
}
.next-match-fixtures {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.next-match-fixtures:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}
.next-match-fixtures:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}
.next-match-fixtures .match-teams-vs {
    padding: 0;
    margin-bottom: 10px;
}
.next-match-fixtures .match-teams-vs li.team-logo strong {
    font-size: 14px;
    color: var(--secondary-color);
}
.next-match-fixtures .mvs .match-info {
    text-align: center;
}
.next-match-fixtures .mvs .match-info strong {
    font-size: 12px;
    color: var(--primary-color);
    text-transform: uppercase;
    display: block;
}
.next-match-fixtures .mvs .match-info p {
    font-size: 11px;
    color: var(--text-light);
}
.nmf-loc {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid #f9f9f9;
    padding-top: 10px;
    list-style: none;
    margin: 0;
}
.nmf-loc a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* --- Tournaments & Leagues Cards --- */
.tournaments-list, .leagues-list {
    display: block; /* Changed from flex to block to prevent layout collapse */
    width: 100%;
}
.tournament-item, .league-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin-bottom: 20px;
    gap: 15px; /* Restored gap for internal flex spacing */
    width: 100%;
    flex-wrap: wrap;
    position: relative;
}
.tournament-item:hover, .league-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 31, 62, 0.1);
}
.tournament-info, .league-info {
    flex: 1 1 300px; /* Grow, shrink, base width */
    min-width: 0; /* Allow text truncation */
}
.tournament-info h5, .league-info h5 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    /* Removed white-space: nowrap to prevent layout break */
    line-height: 1.2;
}
.tournament-meta, .league-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 14px;
    flex-wrap: wrap;
}
.tournament-meta span i, .league-meta span i {
    color: var(--primary-color);
    margin-right: 5px;
}
.tournament-actions, .league-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap; /* Allow buttons to stack if needed */
}
.btn-sm {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap; /* Keep button text on one line */
}

/* --- Recent Results --- */
.recent-result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.recent-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.result-header {
    background: var(--bg-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.result-header h5 {
    margin: 0;
    font-size: 16px;
    color: var(--secondary-color);
}
.result-date {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}
.result-match {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.player-result {
    flex: 1;
    text-align: center;
}
.player-result strong {
    display: block;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 16px;
}
.player-result .score {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(23, 30, 54, 0.3);
}
.vs-separator {
    color: var(--text-light);
    font-weight: 700;
    font-style: italic;
    opacity: 0.5;
}
.result-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.game-type {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(232, 31, 62, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Clubs Carousel --- */
.clubs-section {
    position: relative;
}
.club-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    margin: 10px;
}
.club-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.club-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.club-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.club-box:hover .club-thumb img {
    transform: scale(1.1);
}
.club-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 30, 54, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.club-box:hover .club-overlay {
    opacity: 1;
}
.club-overlay a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.club-overlay a:hover {
    transform: scale(1.2);
}
.club-txt {
    padding: 25px;
    text-align: center;
}
.club-txt h4 {
    font-size: 20px;
    margin-bottom: 10px;
}
.club-txt h4 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.club-txt h4 a:hover {
    color: var(--primary-color);
}
.club-meta {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: var(--text-light);
    font-size: 14px;
}
.club-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.club-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    overflow: hidden;
}
.cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.1;
}
.cta-content {
    position: relative;
    z-index: 2;
}
.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.cta-features {
    margin: 40px 0;
}
.feature-item {
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}
.feature-item h5 {
    margin: 15px 0 0;
    font-size: 16px;
    font-weight: 600;
}
.cta-buttons .btn-lg {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .slider-tabs { margin-top: 0; }
    .slider-tabs ul { display: block; }
    .slider-tabs ul li { border-right: none; border-bottom: 1px solid #eee; }
    .tournament-item, .league-item { flex-direction: column; text-align: center; }
    .tournament-meta, .league-meta { justify-content: center; margin: 15px 0; }
    .tournament-actions, .league-actions { width: 100%; justify-content: center; }
}
