/* css/components.css */

/* Navbar / Header */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.refresh-timer {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.timer-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* League Section */
.league-section {
    margin-top: 24px;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease forwards;
}

.league-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.league-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border-radius: 4px;
}

.league-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Match Card */
.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.match-card.live {
    border-color: rgba(255, 51, 75, 0.2);
    background: linear-gradient(to bottom, var(--bg-card), rgba(255, 51, 75, 0.02));
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.team span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
}

.match-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    gap: 4px;
}

.score {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score span.dash {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.2rem;
}

.match-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.status-time {
    color: var(--text-secondary);
    font-family: var(--font-en);
}

.status-live {
    background: var(--live-red);
    color: white;
    animation: live-pulse 2s infinite;
}

.status-finished {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Ads Placeholders */
.ad-container {
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-ar);
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--bg-card-hover);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Standings Table */
.standings-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 500px;
}

.standings-table th {
    text-align: right;
    padding: 14px;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.standings-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover {
    background: var(--bg-card-hover);
}

.rank-col { width: 40px; font-weight: 800; font-family: var(--font-en); color: var(--text-muted); }
.team-col { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.team-col img { width: 24px; height: 24px; object-fit: contain; }
.num-col { text-align: center !important; font-family: var(--font-en); font-weight: 600; width: 40px; }
.pts-col { text-align: center !important; font-family: var(--font-en); font-weight: 800; color: var(--accent); width: 50px; }

.league-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.league-chip {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.league-chip.active {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.search-box {
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-ar);
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
    .team img {
        width: 38px;
        height: 38px;
    }
    .team span {
        font-size: 0.85rem;
    }
    .score {
        font-size: 1.4rem;
    }
    .logo-text {
        font-size: 1.2rem;
    }
}
