/* ===================================
   RaceForge View League Page - COMPLETE REDESIGN V3
   =================================== */

.section-padding { padding-top: 2rem; padding-bottom: 2rem; }

/* --- Banner --- */
.league-view-banner-wrapper { position: relative; }
.league-view-banner { height: 300px; background-size: cover; background-position: 50% 50%; transition: transform 0.4s ease-out; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); }
.league-view-banner-wrapper:hover .league-view-banner { transform: scale(1.05); }
.banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(16,16,18,0.95), transparent 60%); }
.banner-content-wrapper { position: absolute; bottom: 30px; left: 30px; }
.banner-title { font-family: var(--font-mono); font-size: 2.5rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* --- Main Header & Actions --- */
.league-main-header { text-align: center; margin-top: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.league-main-header h1 { font-size: 2.5rem; margin: 0; }
.meta-tags { display: flex; justify-content: center; gap: 20px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.9rem; margin-top: 0.75rem; flex-wrap: wrap; }
.league-primary-actions { display: flex; gap: 1rem; margin-top: 2rem; margin-bottom: 3rem; }
.action-button { flex: 1; padding: 1rem; font-size: 1rem; display: flex; justify-content: center; align-items: center; gap: 0.75rem; }
.join-status-box { border: 1px solid; font-weight: bold; }
.status-approved { background-color: rgba(40, 167, 69, 0.1); border-color: rgba(40, 167, 69, 0.4); color: #28a745; }
.status-pending { background-color: rgba(255, 193, 7, 0.1); border-color: rgba(255, 193, 7, 0.4); color: #ffc107; }

/* --- Tabbed Content System --- */
.league-content-tabs { display: flex; gap: 0.5rem; margin-bottom: -1px; position: relative; z-index: 2; }
.tab-btn { font-family: var(--font-mono); font-size: 0.9rem; padding: 0.8rem 1.5rem; background-color: rgba(0,0,0,0.3); color: var(--text-secondary); border: 1px solid var(--border-color); border-bottom: none; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); transition: background-color 0.2s, color 0.2s; }
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { background-color: var(--bg-panel); color: var(--accent-blue); border-bottom: 1px solid var(--bg-panel); }
.kinetic-panel { padding: 0; } /* Remove padding for full-width list */
.league-tab-content { display: none; animation: fadeIn 0.3s ease; }
.league-tab-content.active { display: block; }
.league-description { line-height: 1.7; padding: 1.5rem; } /* Add padding back for text content */

/* --- NEW: Schedule "Timing Sheet" List --- */
.schedule-timing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.schedule-timing-list li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.schedule-timing-list li:first-child {
    border-top: none;
}
.schedule-timing-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 1.5rem 1rem 2rem; /* Extra left padding for the "kerb" */
    text-decoration: none;
    transition: background-color 0.2s;
}

/* The "Kerb" Accent - a nod to your circuit shape idea */
.schedule-timing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: repeating-linear-gradient(45deg, #cc3333, #cc3333 8px, #ffffff 8px, #ffffff 16px);
    opacity: 0;
    transition: opacity 0.2s;
}
a.schedule-timing-item:hover {
    background-color: rgba(0, 170, 255, 0.05);
}
a.schedule-timing-item:hover li::before, /* This selector is wrong, see below */
.schedule-timing-list li:hover::before {
    opacity: 1;
}

.schedule-timing-item.is-pending {
    cursor: default;
    color: var(--text-secondary);
}
.schedule-timing-meta {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: var(--font-mono);
}
.schedule-timing-meta .round {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.schedule-timing-meta .date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.track {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
a.schedule-timing-item:hover .track {
    color: var(--accent-blue);
}
.status-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}
.status-tag.results-available {
    background-color: rgba(0, 170, 255, 0.1);
    color: var(--accent-blue);
}
.status-tag.results-pending {
    color: var(--text-secondary);
}
.status-tag i {
    font-size: 0.7rem;
    margin-left: 8px;
    opacity: 0.7;
    transition: transform 0.2s;
}
a.schedule-timing-item:hover .status-tag i {
    transform: translateX(3px);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .league-primary-actions { flex-direction: column; }
    .league-main-header h1, .banner-title { font-size: 2rem; }
}