/**
 * KickScope Main Stylesheet
 * Professional Football Platform
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #fc8181;
    --warning: #f6ad55;
    --info: #63b3ed;
    --dark: #1a202c;
    --darker: #0d1117;
    --light: #f7fafc;
    --gray: #a0aec0;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ============================================
   Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--darker);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--primary);
}

.top-bar-text {
    color: var(--gray);
}

.top-bar-link {
    color: var(--gray);
    margin-left: 20px;
    transition: var(--transition);
}

.top-bar-link:hover {
    color: white;
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background: var(--dark);
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-brand .brand-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.navbar-brand .brand-text span {
    color: var(--primary);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 10px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background: var(--gradient);
}

.navbar-nav .nav-link i {
    margin-right: 6px;
}

.search-form .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px 0 0 50px;
    padding: 8px 16px;
    min-width: 250px;
}

.search-form .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-form .search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: none;
}

.btn-search {
    background: var(--gradient);
    border: none;
    border-radius: 0 50px 50px 0;
    padding: 8px 20px;
    color: white;
    transition: var(--transition);
}

.btn-search:hover {
    opacity: 0.9;
    color: white;
}

.mobile-search {
    background: var(--dark);
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.dropdown-menu {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 8px 0;
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    font-size: 14px;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: var(--darker);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-buttons .btn {
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 12px;
}

.hero-buttons .btn-primary {
    background: var(--gradient);
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stats .stat-item {
    text-align: left;
}

.hero-stats .stat-number {
    display: block;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.hero-stats .stat-label {
    color: var(--gray);
    font-size: 14px;
}

.hero-illustration {
    position: relative;
}

.live-score-overlay {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    border-radius: var(--radius);
    padding: 16px 24px;
    box-shadow: var(--shadow-xl);
    min-width: 280px;
}

.match-preview .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.match-preview .team {
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.match-preview .score {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.match-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.section-title-wrapper .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title-wrapper .section-title i {
    margin-right: 10px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   Match Cards
   ============================================ */
.section-matches {
    padding: 60px 0;
    background: white;
}

.match-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.match-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.match-live {
    border: 2px solid var(--danger);
}

.match-card-header {
    padding: 12px 16px;
    background: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.match-card-header .league-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.match-card-header .match-status-badge .badge {
    font-size: 11px;
    padding: 4px 10px;
}

.match-card-body {
    padding: 20px 16px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.match-teams .team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-teams .team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.match-teams .team-name {
    font-weight: 600;
    font-size: 14px;
}

.match-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.match-score .score-value {
    font-size: 22px;
}

.match-score .score-divider {
    color: var(--gray);
}

.match-score .match-time {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.match-card-footer {
    padding: 12px 16px;
    background: var(--light);
    border-top: 1px solid #e2e8f0;
}

/* ============================================
   Live Banner
   ============================================ */
.section-live {
    padding: 40px 0;
    background: var(--darker);
}

.live-banner {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.live-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.live-banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.live-banner-icon {
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

.live-banner-text h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 0;
}

.live-banner-text h3 .pulse-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #fc8181;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

.live-banner-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.live-banner-content .btn-light {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    margin-left: auto;
}

/* ============================================
   Prediction Cards
   ============================================ */
.section-featured {
    padding: 60px 0;
}

.prediction-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.prediction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.prediction-header {
    padding: 16px;
    background: var(--light);
    border-bottom: 1px solid #e2e8f0;
}

.prediction-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.prediction-teams .team-name {
    font-weight: 600;
    font-size: 14px;
}

.prediction-teams .prediction-vs {
    color: var(--gray);
    font-size: 13px;
}

.prediction-body {
    padding: 16px;
}

.prediction-stat {
    padding: 8px;
    background: var(--light);
    border-radius: 8px;
}

.prediction-stat .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.prediction-stat .stat-label {
    font-size: 12px;
    color: var(--gray);
}

.prediction-summary {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--light);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 0;
}

.prediction-footer {
    padding: 12px 16px;
    background: var(--light);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-footer .tipster-name {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar .widget {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light);
}

.widget-title i {
    margin-right: 8px;
    color: var(--primary);
}

/* Live Widget */
.live-match-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.live-match-item:last-child {
    border-bottom: none;
}

.live-match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.live-match-teams .team-name {
    font-size: 13px;
}

.live-match-teams .live-score {
    font-weight: 700;
    color: var(--primary);
}

.live-match-status {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
}

/* Tipster Widget */
.tipster-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tipster-item:last-child {
    border-bottom: none;
}

.tipster-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tipster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tipster-avatar i {
    font-size: 30px;
    color: var(--gray);
}

.tipster-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.tipster-stats {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.tipster-stats .badge {
    font-size: 10px;
    padding: 2px 8px;
}

/* Standings Widget */
.standing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.standing-item:last-child {
    border-bottom: none;
}

.standing-position {
    font-weight: 700;
    color: var(--gray);
    min-width: 24px;
    font-size: 13px;
}

.standing-team {
    flex: 1;
    font-size: 13px;
}

.standing-points {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

/* Ad Widget */
.widget-ad {
    background: var(--light);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-placeholder {
    text-align: center;
}

.ad-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: 1px;
}

/* ============================================
   News Section
   ============================================ */
.section-news {
    padding: 60px 0;
    background: var(--light);
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.news-body {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--text-primary);
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
}

.news-meta i {
    margin-right: 4px;
}

/* News Items (list) */
.news-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-image {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.news-item-title a {
    color: var(--text-primary);
}

.news-item-title a:hover {
    color: var(--primary);
}

.news-item-meta {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   Leagues Section
   ============================================ */
.section-leagues {
    padding: 60px 0;
    background: white;
}

.league-card {
    display: block;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.league-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
}

.league-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.league-country {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   Tipsters Section
   ============================================ */
.section-tipsters {
    padding: 60px 0;
    background: var(--light);
}

.tipster-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.tipster-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tipster-card-header {
    padding: 30px 20px 20px;
    background: var(--gradient);
    position: relative;
}

.tipster-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid white;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tipster-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tipster-avatar-lg i {
    font-size: 60px;
    color: var(--gray);
}

.verified-badge {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 20px;
}

.verified-badge i {
    color: #48bb78;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tipster-card-body {
    padding: 20px;
}

.tipster-card-body .tipster-name {
    font-size: 18px;
    margin-bottom: 4px;
}

.tipster-card-body .tipster-bio {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.tipster-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tipster-stats-grid .stat .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.tipster-stats-grid .stat .label {
    font-size: 12px;
    color: var(--gray);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--darker);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

.footer-links a i {
    font-size: 10px;
    margin-right: 6px;
    color: var(--primary);
}

.footer-links li i {
    color: var(--gray);
    width: 20px;
}

.btn-newsletter {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-bottom-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links li a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    transition: var(--transition);
}

.footer-bottom-links li a:hover {
    color: white;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: white;
}