/**
 * SportsPortal API Enhancements Styles
 */

/* Team Logos Widget */
.sp-team-logos-widget {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sp-team-logos-widget h3 {
    margin-top: 0;
    color: #1a2332;
    font-size: 18px;
    font-weight: 600;
}

.sp-team-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.sp-team-logo-item {
    min-height: 120px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-team-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    height: 100%;
    transition: background 0.2s ease;
}

.sp-team-logo-link:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sp-team-logo-link img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.sp-team-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a2332;
    text-align: center;
    line-height: 1.3;
}

/* Weather Widget */
.sp-weather-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sp-weather-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sp-weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sp-weather-city {
    font-size: 16px;
    font-weight: 600;
}

.sp-weather-emoji {
    font-size: 32px;
}

.sp-weather-temp {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1;
}

.sp-weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sp-weather-details div {
    line-height: 1.5;
}

.sp-weather-credit {
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
}

.sp-weather-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.sp-weather-credit a:hover {
    color: white;
}

/* Geolocation & Currency Widget */
.sp-geo-currency-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.sp-geo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sp-flag {
    font-size: 48px;
    line-height: 1;
}

.sp-geo-info {
    flex: 1;
}

.sp-country {
    font-size: 18px;
    font-weight: 600;
    color: #1a2332;
}

.sp-city {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.sp-currency-display {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 12px 0;
    font-weight: 500;
}

.sp-symbol {
    float: right;
    font-size: 24px;
    color: #667eea;
}

.sp-rates-list {
    margin: 12px 0;
}

.sp-rates-list strong {
    display: block;
    margin-bottom: 8px;
    color: #1a2332;
}

.sp-rates-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.sp-rates-list li {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #1a2332;
    border-left: 3px solid #667eea;
}

.sp-geo-credit {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
    text-align: center;
}

.sp-geo-credit a {
    color: #667eea;
    text-decoration: none;
}

.sp-geo-credit a:hover {
    text-decoration: underline;
}

/* Visitor Location Badge */
.sp-visitor-location-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
}

#sp-visitor-location {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sp-team-logos {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .sp-weather-card {
        padding: 15px;
    }

    .sp-weather-temp {
        font-size: 36px;
    }

    .sp-weather-details {
        grid-template-columns: 1fr;
    }

    .sp-geo-header {
        gap: 10px;
    }

    .sp-flag {
        font-size: 36px;
    }

    .sp-country {
        font-size: 16px;
    }

    .sp-rates-list ul {
        grid-template-columns: 1fr;
    }
}

/* Animation for loading states */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-weather-widget,
.sp-geo-currency-widget,
.sp-team-logos-widget {
    animation: fadeIn 0.3s ease-in-out;
}
