/*
 * Betting Widget System - Frontend CSS
 * Version: 1.0.0
 */

/* ============================================
   GLOBAL WIDGET STYLES
   ============================================ */

.betting-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.betting-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--betting-primary, #667eea), var(--betting-secondary, #764ba2));
}

.betting-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.betting-widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--betting-text, #2d3748);
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.betting-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--betting-primary, #667eea), var(--betting-secondary, #764ba2));
}

/* ============================================
   BANNER WIDGETS
   ============================================ */

.betting-banner {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.betting-banner img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.betting-banner a:hover img {
    transform: scale(1.05);
}

.betting-banner-vertical {
    max-width: 300px;
}

.betting-banner-horizontal {
    width: 100%;
}

/* ============================================
   LIST WIDGETS
   ============================================ */

.betting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.betting-list-item {
    margin-bottom: 10px;
}

.betting-page-link,
.betting-blog-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
}

.betting-page-link:hover,
.betting-blog-link:hover {
    background: #edf2f7;
    border-left-color: var(--betting-primary, #667eea);
    transform: translateX(5px);
}

.page-icon,
.blog-icon {
    margin-right: 10px;
}

.page-arrow,
.blog-arrow {
    color: var(--betting-primary, #667eea);
    font-weight: 700;
}

/* ============================================
   BLOG LIST
   ============================================ */

.betting-blog-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.betting-blog-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.betting-blog-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.betting-blog-item:hover .blog-thumbnail img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.blog-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--betting-primary, #667eea);
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.blog-excerpt {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-read-more {
    display: inline-block;
    color: var(--betting-primary, #667eea);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    transform: translateX(5px);
}

/* ============================================
   LIVE MATCHES
   ============================================ */

.live-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.live-match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.live-match-item:hover {
    background: rgba(255, 51, 102, 0.1);
    border-color: rgba(255, 51, 102, 0.4);
    transform: translateX(5px);
}

.live-indicator {
    background: #ff3366;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(255, 51, 102, 0.8);
    }
}

.match-teams {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.match-teams .vs {
    margin: 0 8px;
    color: #718096;
    font-weight: 400;
}

.view-match {
    color: var(--betting-primary, #667eea);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-match:hover {
    color: var(--betting-secondary, #764ba2);
}

/* ============================================
   LEAGUE FILTER
   ============================================ */

.league-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.league-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.league-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.league-item.active {
    background: linear-gradient(135deg, var(--betting-primary, #667eea) 0%, var(--betting-secondary, #764ba2) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.league-name {
    font-size: 14px;
    font-weight: 600;
}

.match-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================
   BOOKMAKER LIST
   ============================================ */

.bookmaker-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookmaker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.bookmaker-item:hover {
    background: #ffffff;
    border-color: var(--betting-primary, #667eea);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.bookmaker-rank {
    background: linear-gradient(135deg, var(--betting-primary, #667eea), var(--betting-secondary, #764ba2));
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.bookmaker-info {
    flex: 1;
}

.bookmaker-name {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.bookmaker-rating {
    font-size: 13px;
    color: #718096;
}

.bookmaker-bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.bonus-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bonus-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--betting-primary, #667eea);
}

.bookmaker-register {
    color: var(--betting-primary, #667eea);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bookmaker-register:hover {
    color: var(--betting-secondary, #764ba2);
}

/* ============================================
   UPCOMING MATCHES
   ============================================ */

.upcoming-matches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-match-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.upcoming-match-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.upcoming-match-item .match-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--betting-primary, #667eea);
    min-width: 50px;
}

.upcoming-match-item .match-teams {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.view-odds {
    color: var(--betting-primary, #667eea);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.view-odds:hover {
    color: var(--betting-secondary, #764ba2);
}

/* ============================================
   STATISTICS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, var(--betting-primary, #667eea) 0%, var(--betting-secondary, #764ba2) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   BETTING TIPS
   ============================================ */

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 3px solid var(--betting-primary, #667eea);
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.betting-widget-animated {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .betting-widget {
        padding: 20px;
    }
    
    .betting-widget-title {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bookmaker-item {
        flex-wrap: wrap;
    }
}
