/**
 * Widgets Shortcodes - Ticker & Sidebar
 *
 * @package MatchAfrique_Football_V2
 */

/* === Live Ticker - Design Premium === */
.maf-ticker {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.maf-ticker__track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.maf-ticker__track::-webkit-scrollbar {
    display: none;
}

.maf-ticker__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.maf-ticker__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #00D900;
}

.maf-ticker__item--live {
    background: linear-gradient(135deg, #fff 0%, #f0fff0 100%);
    border-color: #00D900;
    box-shadow: 0 2px 8px rgba(0, 217, 0, 0.15);
}

.maf-ticker__live-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #dc3545;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.maf-ticker__live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: maf-pulse 1s ease-in-out infinite;
}

@keyframes maf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.maf-ticker__logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.maf-ticker__team {
    font-weight: 600;
    font-size: 12px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maf-ticker__score {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a2e;
    padding: 4px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
}

.maf-ticker__item--live .maf-ticker__score {
    background: #00D900;
    color: #fff;
}

.maf-ticker__vs {
    color: #999;
    font-size: 10px;
    font-weight: 500;
}

.maf-ticker__minute {
    font-size: 10px;
    font-weight: 600;
    color: #00D900;
    background: rgba(0, 217, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.maf-ticker__time {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.maf-ticker__status {
    font-size: 10px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

/* === Widget Common === */
.maf-widget__more {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #00D900;
    border-top: 1px solid #e5e5e5;
    transition: background 0.2s ease;
}

.maf-widget__more:hover {
    background: #f5f5f5;
    color: #00B800;
}

/* === Widget Standings === */
.maf-widget-standings__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.maf-widget-standings__table thead {
    background: #00D900;
    color: #000;
}

.maf-widget-standings__table th {
    padding: 10px 8px;
    font-weight: 700;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
}

.maf-widget-standings__table th.maf-widget-standings__pts {
    text-align: center;
}

.maf-widget-standings__table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.maf-widget-standings__table tbody tr:nth-child(odd) {
    background: #fafafa;
}

.maf-widget-standings__table tbody tr:hover {
    background: #f0f0f0;
}

.maf-widget-standings__table td {
    padding: 10px 8px;
}

.maf-widget-standings__pos {
    width: 30px;
    font-weight: 700;
    text-align: center;
}

.maf-widget-standings__team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maf-widget-standings__team a {
    color: #333;
    font-weight: 500;
}

.maf-widget-standings__team a:hover {
    color: #00D900;
}

.maf-widget-standings__logo {
    border-radius: 4px;
    flex-shrink: 0;
}

.maf-widget-standings__pts {
    width: 40px;
    text-align: center;
    font-weight: 700;
    color: #00D900;
}

/* === Widget Scorers === */
.maf-widget-scorers__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.maf-widget-scorers__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.maf-widget-scorers__item:last-child {
    border-bottom: none;
}

.maf-widget-scorers__item:hover {
    background: #fafafa;
}

.maf-widget-scorers__rank {
    width: 20px;
    font-weight: 700;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.maf-widget-scorers__photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.maf-widget-scorers__photo--placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
}

.maf-widget-scorers__info {
    flex: 1;
    min-width: 0;
}

.maf-widget-scorers__name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maf-widget-scorers__name:hover {
    color: #00D900;
}

.maf-widget-scorers__team {
    font-size: 12px;
    color: #888;
}

.maf-widget-scorers__goals {
    font-size: 18px;
    font-weight: 700;
    color: #00D900;
    min-width: 30px;
    text-align: center;
}

/* === Widget Fixtures === */
.maf-widget-fixtures__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.maf-widget-fixtures__item {
    border-bottom: 1px solid #f0f0f0;
}

.maf-widget-fixtures__item:last-child {
    border-bottom: none;
}

.maf-widget-fixtures__link {
    display: block;
    padding: 12px;
    transition: background 0.2s ease;
}

.maf-widget-fixtures__link:hover {
    background: #fafafa;
}

.maf-widget-fixtures__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.maf-widget-fixtures__team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.maf-widget-fixtures__team img {
    border-radius: 4px;
    flex-shrink: 0;
}

.maf-widget-fixtures__vs {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
}

.maf-widget-fixtures__meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maf-widget-fixtures__date {
    font-size: 12px;
    font-weight: 600;
    color: #00D900;
}

.maf-widget-fixtures__comp {
    font-size: 11px;
    color: #888;
    font-style: italic;
}
