/* GoalPulse Professional Football Portal Styles */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f8fafc;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Navbar Styles */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Live Scores Ticker */
.live-scores-ticker {
    background: linear-gradient(90deg, #1f2937 0%, #374151 100%);
    position: sticky;
    top: 76px;
    z-index: 1020;
    border-bottom: 2px solid var(--accent-color);
    padding: 0.75rem 0;
}

.ticker-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ticker-label {
    display: flex;
    align-items: center;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-label i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    height: 40px;
    position: relative;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.ticker-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.ticker-item:hover::before {
    left: 100%;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.ticker-league {
    color: #fbbf24;
    font-weight: 600;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-match {
    font-weight: 600;
    margin: 0 0.5rem;
    color: white;
}

.ticker-time {
    color: #34d399;
    font-weight: 700;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    background: rgba(52, 211, 153, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.ticker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.ticker-loading i {
    margin-right: 0.5rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Legacy classes for backward compatibility */
.live-scores-slider {
    overflow: hidden;
    position: relative;
}

.live-scores-content {
    display: flex;
    animation: scrollLeft 30s linear infinite;
    white-space: nowrap;
}

.live-match-item {
    display: inline-flex;
    align-items: center;
    margin-right: 3rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.live-match-item .score {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin: 0 0.5rem;
    font-weight: 700;
    min-width: 3rem;
    text-align: center;
}

.live-match-item .match-time {
    color: #fbbf24;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

/* Match Cards */
.match-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 2rem;
    position: relative;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

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

.match-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.match-league {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-date {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.match-card-body {
    padding: 2rem 1.5rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.team-info {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: var(--shadow-light);
}

.team-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.team-country {
    font-size: 0.8rem;
    color: #6b7280;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
    min-width: 80px;
}

.vs-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.match-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.match-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-upcoming {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
}

.status-live {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    animation: pulse 2s infinite;
}

.status-finished {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.match-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0;
}

.match-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-match {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-match-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-match-secondary {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
}

.btn-match:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.team-card-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.team-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

.team-logo-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 10px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.team-name-large {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.team-country-large {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.team-card-body {
    padding: 1.5rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Player Cards */
.player-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.player-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.player-card:hover .player-image {
    transform: scale(1.05);
}

.player-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.player-card-body {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.player-team {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.player-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.player-info-label {
    color: #6b7280;
    font-weight: 500;
}

.player-info-value {
    color: #1f2937;
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    margin-top: 4rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

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

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer h6 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer ul li a {
    transition: var(--transition);
    position: relative;
}

.footer ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--accent-color) !important;
}

.footer ul li a:hover::after {
    width: 100%;
}

.legal-links a {
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: var(--accent-color) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.loading-text {
    color: #9ca3af;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        text-align: center;
    }
    
    .vs-divider {
        margin: 1rem 0;
    }
    
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .live-match-item {
        margin-right: 1.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .legal-links {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .legal-links a {
        display: inline-block;
        margin: 0.25rem;
    }
    
    /* Ticker mobile responsiveness */
    .live-scores-ticker {
        top: 66px;
    }
    
    .ticker-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem;
    }
    
    .ticker-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ticker-content {
        height: 35px;
    }
    
    .ticker-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-right: 1rem;
    }
    
    .ticker-league {
        font-size: 0.7rem;
        margin-right: 0.5rem;
    }
    
    .ticker-time {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .ticker-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        margin-right: 0.8rem;
    }
    
    .ticker-league {
        display: none; /* Hide league on very small screens */
    }
    
    .ticker-match {
        margin: 0 0.3rem;
    }
    
    .ticker-time {
        font-size: 0.7rem;
    }
    
    .ticker-label {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .ticker-label span {
        display: none; /* Hide "LIVE SCORES" text on very small screens */
    }
}

@media (max-width: 576px) {
    .match-card-body {
        padding: 1.5rem 1rem;
    }
    
    .team-logo {
        width: 50px;
        height: 50px;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .match-score {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}