/**
 * UCL UEFA Champions League Frontend Styles
 * 2025-26 UEFA Champions League Theme Pages
 * Prefix: .ucl-* (isolated from existing .wc26-*)
 */

/* ─────────────────────────────────────────
   Variables
   ───────────────────────────────────────── */
:root {
    --ucl-navy: #003399;
    --ucl-blue: #0033A0;
    --ucl-silver: #C0C5CE;
    --ucl-gold: #D4AF37;
    --ucl-red: #e74c3c;
    --ucl-bg: #f8f9fa;
    --ucl-white: #ffffff;
    --ucl-text: #333333;
    --ucl-text-light: #666666;
    --ucl-border: #e0e0e0;
    --ucl-radius: 12px;
    --ucl-radius-sm: 8px;
    --ucl-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --ucl-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

/* ─────────────────────────────────────────
   Page Container
   ───────────────────────────────────────── */
.ucl-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ucl-text);
    line-height: 1.6;
}

.ucl-page__title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--ucl-navy);
}

/* ─────────────────────────────────────────
   Hero Banner
   ───────────────────────────────────────── */
.ucl-hero {
    background: linear-gradient(135deg, #003399 0%, #0033A0 50%, #1A1A1A 100%);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    color: var(--ucl-white);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.ucl-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.ucl-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(192,197,206,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ucl-hero__title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    letter-spacing: 0.5px;
}

.ucl-hero__subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 24px 0;
    position: relative;
}

/* ─────────────────────────────────────────
   Sub Navigation
   ───────────────────────────────────────── */
.ucl-subnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ucl-white);
    border-bottom: 1px solid var(--ucl-border);
    margin-bottom: 24px;
    padding: 8px 0;
}

/* Offset for WordPress admin bar */
body.admin-bar .ucl-subnav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .ucl-subnav {
        top: 46px;
    }
}

.ucl-subnav__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.ucl-subnav__inner::-webkit-scrollbar {
    display: none;
}

.ucl-subnav__link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ucl-text);
    background: var(--ucl-bg);
    transition: all 0.2s ease;
}

.ucl-subnav__link:hover {
    background: var(--ucl-blue);
    color: var(--ucl-white);
    text-decoration: none;
}

.ucl-subnav__link--active {
    background: var(--ucl-blue);
    color: var(--ucl-white);
}

/* ─────────────────────────────────────────
   Sections
   ───────────────────────────────────────── */
.ucl-section {
    margin-bottom: 24px;
}

.ucl-section__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ucl-navy);
    margin: 0 0 16px 0;
    padding-left: 12px;
    border-left: 4px solid var(--ucl-gold);
}

/* ─────────────────────────────────────────
   Cards
   ───────────────────────────────────────── */
.ucl-card {
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    padding: 24px;
    transition: box-shadow 0.2s ease;
}

.ucl-card:hover {
    box-shadow: var(--ucl-shadow-hover);
}

/* ─────────────────────────────────────────
   Live Badge
   ───────────────────────────────────────── */
.ucl-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ucl-red);
    text-transform: uppercase;
}

.ucl-live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ucl-red);
    animation: ucl-pulse 1.5s ease-in-out infinite;
}

.ucl-live-badge::after {
    content: 'LIVE';
}

/* ─────────────────────────────────────────
   Match Cards
   ───────────────────────────────────────── */
.ucl-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.ucl-match {
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    padding: 16px 20px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.ucl-match:hover {
    box-shadow: var(--ucl-shadow-hover);
}

.ucl-match--live {
    border-left: 4px solid var(--ucl-red);
}

.ucl-match--upcoming {
    border-left: 4px solid var(--ucl-blue);
}

.ucl-match--default {
    border-left: 4px solid var(--ucl-border);
}

.ucl-match__group {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ucl-blue);
    background: rgba(0, 51, 160, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ucl-match__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ucl-match__team {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ucl-match__home {
    justify-content: flex-end;
    text-align: right;
}

.ucl-match__away {
    justify-content: flex-start;
    text-align: left;
}

.ucl-match__score {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--ucl-navy);
    min-width: 60px;
    text-align: center;
    padding: 4px 8px;
    background: var(--ucl-bg);
    border-radius: var(--ucl-radius-sm);
}

.ucl-match--live .ucl-match__score {
    color: var(--ucl-red);
    background: rgba(231, 76, 60, 0.08);
}

.ucl-match__date,
.ucl-match__venue {
    font-size: 12px;
    color: var(--ucl-text-light);
}

.ucl-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.ucl-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left !important;
    white-space: nowrap;
}

.ucl-team-cell .ucl-team-logo {
    width: 20px;
    height: 20px;
}

/* ─────────────────────────────────────────
   Standings Tables
   ───────────────────────────────────────── */
.ucl-standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 24px;
}

.ucl-standings-group {
    margin-bottom: 24px;
}

.ucl-standings-group__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ucl-navy);
    margin: 0 0 12px 0;
    padding: 8px 16px;
    background: var(--ucl-bg);
    border-radius: var(--ucl-radius-sm);
}

.ucl-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ucl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--ucl-white);
    border-radius: var(--ucl-radius-sm);
    overflow: hidden;
    box-shadow: var(--ucl-shadow);
}

.ucl-table thead th {
    background: var(--ucl-navy);
    color: var(--ucl-white);
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.ucl-table thead th:nth-child(2) {
    text-align: left;
}

.ucl-table tbody td {
    padding: 8px 12px;
    text-align: center;
    border-bottom: 1px solid var(--ucl-border);
}

.ucl-table tbody td:nth-child(2) {
    text-align: left;
    font-weight: 600;
}

.ucl-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

/* Standings qualification zones */
.ucl-qualifier-zone {
    background: rgba(45, 106, 79, 0.15) !important;
    border-left: 3px solid #2d6a4f;
}

.ucl-playoff-zone {
    background: rgba(255, 193, 7, 0.12) !important;
    border-left: 3px solid #ffc107;
}

.ucl-eliminated-zone {
    background: rgba(108, 117, 125, 0.08) !important;
    border-left: 3px solid #6c757d;
    color: var(--ucl-text-light);
}

.ucl-zone-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--ucl-white);
    border-radius: var(--ucl-radius-sm);
    box-shadow: var(--ucl-shadow);
    font-size: 13px;
    font-weight: 600;
}

.ucl-zone-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ucl-zone-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid var(--ucl-border);
}

.ucl-zone-swatch.ucl-qualifier-zone {
    border-left-width: 3px;
}

/* Mini standings */
.ucl-table--mini {
    font-size: 13px;
}

.ucl-table--mini thead th {
    padding: 6px 8px;
    font-size: 11px;
}

.ucl-table--mini tbody td {
    padding: 6px 8px;
}

/* ─────────────────────────────────────────
   Team Grid
   ───────────────────────────────────────── */
.ucl-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ucl-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    text-decoration: none;
    color: var(--ucl-text);
    transition: all 0.2s ease;
}

.ucl-team-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ucl-shadow-hover);
    text-decoration: none;
    color: var(--ucl-blue);
}

.ucl-team-card__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.ucl-team-card__logo-placeholder {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ucl-bg);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    color: var(--ucl-blue);
}

.ucl-team-card__name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.ucl-team-card__code {
    font-size: 12px;
    color: var(--ucl-text-light);
}

/* Team Detail */
.ucl-team-detail .ucl-page__title {
    font-size: 32px;
}

.ucl-back-link {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--ucl-blue);
    text-decoration: none;
}

.ucl-back-link:hover {
    text-decoration: underline;
}

/* Info list (DL) */
.ucl-info-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    margin: 0;
}

.ucl-info-list dt {
    font-weight: 600;
    color: var(--ucl-text-light);
    font-size: 13px;
}

.ucl-info-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--ucl-text);
}

/* ─────────────────────────────────────────
   Player Grid
   ───────────────────────────────────────── */
.ucl-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.ucl-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    text-decoration: none;
    color: var(--ucl-text);
    transition: all 0.2s ease;
    text-align: center;
}

.ucl-player-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ucl-shadow-hover);
    text-decoration: none;
    color: var(--ucl-blue);
}

.ucl-player-card__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ucl-bg);
}

.ucl-player-card__photo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ucl-bg);
    font-size: 40px;
}

.ucl-player-card__name {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0 0 0;
    color: var(--ucl-navy);
}

.ucl-player-card__team {
    font-size: 12px;
    color: var(--ucl-text-light);
    margin: 0;
}

.ucl-player-card__pos {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 51, 160, 0.1);
    color: var(--ucl-blue);
}

.ucl-player-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ucl-player-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--ucl-border);
    border-radius: var(--ucl-radius-sm);
    font-size: 14px;
    background: var(--ucl-white);
}

.ucl-player-search__input:focus {
    outline: none;
    border-color: var(--ucl-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.12);
}

.ucl-player-search__btn {
    padding: 10px 20px;
    background: var(--ucl-blue);
    color: var(--ucl-white);
    border: none;
    border-radius: var(--ucl-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ucl-player-search__btn:hover {
    background: var(--ucl-navy);
}

/* ─────────────────────────────────────────
   Statistics
   ───────────────────────────────────────── */
.ucl-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.ucl-stat-card {
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    padding: 20px 16px;
    text-align: center;
}

.ucl-stat-card__value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--ucl-navy);
    line-height: 1.2;
}

.ucl-stat-card__label {
    display: block;
    font-size: 12px;
    color: var(--ucl-text-light);
    margin-top: 4px;
    text-transform: capitalize;
}

/* Scorers Table Highlights */
.ucl-scorers-table .ucl-scorers-top1 td {
    background: rgba(212, 175, 55, 0.18);
}

.ucl-scorers-table .ucl-scorers-top2 td {
    background: rgba(192, 197, 206, 0.22);
}

.ucl-scorers-table .ucl-scorers-top3 td {
    background: rgba(205, 127, 50, 0.15);
}

/* ─────────────────────────────────────────
   History Timeline & Table
   ───────────────────────────────────────── */
.ucl-history-intro {
    background: var(--ucl-white);
    border-left: 4px solid var(--ucl-gold);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--ucl-text-light);
    border-radius: 0 var(--ucl-radius-sm) var(--ucl-radius-sm) 0;
    box-shadow: var(--ucl-shadow);
}

.ucl-history-table .ucl-history-winner {
    font-weight: 700;
    color: var(--ucl-navy);
}

.ucl-history-timeline {
    position: relative;
    padding-left: 40px;
}

.ucl-history-timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--ucl-blue);
    border-radius: 2px;
}

.ucl-history-item {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
}

.ucl-history-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ucl-gold);
    border: 3px solid var(--ucl-blue);
    z-index: 1;
}

.ucl-history-item__year {
    font-size: 18px;
    font-weight: 900;
    color: var(--ucl-blue);
    min-width: 80px;
}

.ucl-history-item__body {
    flex: 1;
    background: var(--ucl-white);
    border-radius: var(--ucl-radius-sm);
    box-shadow: var(--ucl-shadow);
    padding: 12px 16px;
}

.ucl-history-item__winner {
    font-size: 16px;
    margin-bottom: 2px;
}

.ucl-history-item__runnerup {
    font-size: 13px;
    color: var(--ucl-text-light);
    margin-bottom: 4px;
}

.ucl-history-item__score {
    color: var(--ucl-gold);
    font-weight: 600;
}

.ucl-history-item__host {
    font-size: 12px;
    color: var(--ucl-text-light);
    border-top: 1px dashed var(--ucl-border);
    padding-top: 6px;
}

.ucl-history-label {
    font-weight: 600;
}

/* ─────────────────────────────────────────
   Quick Links
   ───────────────────────────────────────── */
.ucl-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.ucl-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    text-decoration: none;
    color: var(--ucl-text);
    transition: all 0.2s ease;
}

.ucl-quick-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--ucl-shadow-hover);
    text-decoration: none;
    color: var(--ucl-blue);
}

.ucl-quick-link__icon {
    font-size: 20px;
    font-weight: 700;
}

.ucl-quick-link__desc {
    font-size: 13px;
    color: var(--ucl-text-light);
    text-align: center;
}

/* ─────────────────────────────────────────
   Schedule Day
   ───────────────────────────────────────── */
.ucl-schedule-day {
    margin-bottom: 24px;
}

.ucl-schedule-day__date {
    font-size: 16px;
    font-weight: 700;
    color: var(--ucl-navy);
    margin: 0 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--ucl-gold);
    display: inline-block;
}

.ucl-phase-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ucl-white);
    background: var(--ucl-blue);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ─────────────────────────────────────────
   News Grid
   ───────────────────────────────────────── */
.ucl-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ucl-news-card {
    background: var(--ucl-white);
    border-radius: var(--ucl-radius);
    box-shadow: var(--ucl-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.ucl-news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ucl-shadow-hover);
}

.ucl-news-card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.ucl-news-card__body {
    padding: 16px;
    flex: 1;
}

.ucl-news-card__date {
    display: block;
    font-size: 12px;
    color: var(--ucl-text-light);
    margin-bottom: 6px;
}

.ucl-news-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ucl-news-card__title a {
    color: var(--ucl-navy);
    text-decoration: none;
}

.ucl-news-card__title a:hover {
    color: var(--ucl-blue);
    text-decoration: underline;
}

.ucl-news-card__summary {
    font-size: 13px;
    color: var(--ucl-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ─────────────────────────────────────────
   Transfer List
   ───────────────────────────────────────── */
.ucl-transfer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.ucl-transfer-item {
    background: var(--ucl-white);
    border-radius: var(--ucl-radius-sm);
    box-shadow: var(--ucl-shadow);
    padding: 14px 16px;
    border-left: 3px solid var(--ucl-gold);
}

.ucl-transfer-item__player {
    font-size: 15px;
    font-weight: 700;
    color: var(--ucl-navy);
    margin-bottom: 6px;
}

.ucl-transfer-item__flow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ucl-text-light);
    margin-bottom: 6px;
}

.ucl-transfer-item__arrow {
    color: var(--ucl-gold);
    font-weight: 700;
}

.ucl-transfer-item__fee {
    font-size: 13px;
    font-weight: 600;
    color: var(--ucl-blue);
}

.ucl-transfer-item__status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 51, 160, 0.1);
    color: var(--ucl-blue);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ─────────────────────────────────────────
   More Link
   ───────────────────────────────────────── */
.ucl-more-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ucl-blue);
    text-decoration: none;
    border: 1px solid var(--ucl-blue);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.ucl-more-link:hover {
    background: var(--ucl-blue);
    color: var(--ucl-white);
    text-decoration: none;
}

/* ─────────────────────────────────────────
   States: Loading, Error, Empty
   ───────────────────────────────────────── */
.ucl-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--ucl-text-light);
}

.ucl-loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--ucl-border);
    border-top-color: var(--ucl-blue);
    border-radius: 50%;
    animation: ucl-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.ucl-error {
    padding: 16px 20px;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--ucl-radius-sm);
    color: var(--ucl-red);
    font-size: 14px;
}

.ucl-empty {
    padding: 16px 20px;
    text-align: center;
    color: var(--ucl-text-light);
    font-style: italic;
    font-size: 14px;
    background: var(--ucl-bg);
    border-radius: var(--ucl-radius-sm);
}

/* ─────────────────────────────────────────
   Footer
   ───────────────────────────────────────── */
.ucl-footer {
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid var(--ucl-border);
    text-align: center;
    font-size: 12px;
    color: var(--ucl-text-light);
}

.ucl-footer p {
    margin: 0;
}

/* ─────────────────────────────────────────
   Animations
   ───────────────────────────────────────── */
@keyframes ucl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes ucl-spin {
    to { transform: rotate(360deg); }
}

@keyframes ucl-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ucl-section {
    animation: ucl-fadeIn 0.3s ease-out;
}

/* ─────────────────────────────────────────
   Responsive: Tablet
   ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .ucl-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ucl-standings-grid {
        grid-template-columns: 1fr;
    }

    .ucl-hero__title {
        font-size: 28px;
    }

    .ucl-player-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─────────────────────────────────────────
   Responsive: Mobile
   ───────────────────────────────────────── */
@media (max-width: 768px) {
    .ucl-page {
        padding: 12px;
    }

    .ucl-page__title {
        font-size: 22px;
    }

    .ucl-hero {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .ucl-hero__title {
        font-size: 22px;
    }

    .ucl-hero__subtitle {
        font-size: 14px;
    }

    .ucl-matches-grid {
        grid-template-columns: 1fr;
    }

    .ucl-team-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ucl-player-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ucl-stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ucl-quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .ucl-news-grid {
        grid-template-columns: 1fr;
    }

    .ucl-match__team {
        font-size: 13px;
    }

    .ucl-match__score {
        font-size: 16px;
    }

    .ucl-section__title {
        font-size: 18px;
    }

    .ucl-table {
        font-size: 12px;
    }

    .ucl-table thead th {
        padding: 6px 4px;
        font-size: 10px;
    }

    .ucl-table tbody td {
        padding: 6px 4px;
    }

    .ucl-history-timeline {
        padding-left: 32px;
    }

    .ucl-history-item__year {
        font-size: 14px;
        min-width: 64px;
    }

    .ucl-info-list {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }

    .ucl-info-list dt {
        margin-top: 8px;
    }

    .ucl-player-search {
        flex-direction: column;
    }

    .ucl-zone-legend {
        font-size: 11px;
        gap: 10px;
        padding: 10px;
    }
}

/* ─────────────────────────────────────────
   Print
   ───────────────────────────────────────── */
@media print {
    .ucl-subnav,
    .ucl-hero,
    .ucl-quick-links,
    .ucl-more-link,
    .ucl-back-link,
    .ucl-footer,
    .ucl-player-search {
        display: none !important;
    }

    .ucl-page {
        max-width: none;
        padding: 0;
    }

    .ucl-match,
    .ucl-card,
    .ucl-news-card,
    .ucl-stat-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .ucl-table thead th {
        background: #eee;
        color: #333;
    }

    .ucl-qualifier-zone,
    .ucl-playoff-zone,
    .ucl-eliminated-zone {
        background: transparent !important;
    }
}
