/* ==========================================
   QBET - Main Stylesheet
   Единый файл стилей для всего сайта
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --bg-dark: #0a0a0a;
    --bg-medium: #111111;
    --bg-light: #1a1a1a;
    --text-white: #ffffff;
    --text-muted: #888888;
    --gold: #ffd700;
    --orange: #f97316;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #a855f7;
    
    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-xl: 35px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumbs span {
    color: var(--text-white);
}

/* ===== Header ===== */
.header,
.header-main {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.header-content,
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav,
.nav-main {
    display: flex;
    gap: 35px;
}

.nav a,
.nav-main a {
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
    text-decoration: none;
}

.nav a:hover,
.nav a.active,
.nav-main a:hover,
.nav-main a.active {
    color: var(--primary);
}

.nav a.active::after,
.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-login {
    color: var(--text-white);
    border-color: rgba(255,255,255,0.2);
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: #0d0d0d;
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.15), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-text {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-text a {
    color: var(--primary);
    text-decoration: underline;
}

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

/* ===== CTA Button ===== */
.cta-button {
    background: var(--primary);
    color: #0d0d0d;
    padding: 20px 60px;
    border-radius: 35px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.4);
}

/* ===== Content Links ===== */
.content-link {
    color: var(--primary);
    text-decoration: underline;
    transition: all 0.3s;
}

.content-link:hover {
    color: var(--primary-dark);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-text {
    text-align: center;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.9;
}

/* ===== Cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.card {
    background: var(--bg-medium);
    border-radius: 25px;
    padding: 45px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.2);
}

.card-icon {
    font-size: 56px;
    margin-bottom: 25px;
}

.card h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--text-white);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ===== Games Grid ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.game-preview,
.game-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.game-preview:hover,
.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.game-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-provider {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.game-rtp {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* ===== Footer ===== */
.footer-main,
.footer {
    background: var(--bg-medium);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(74, 222, 128, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Responsive Design ===== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Header mobile */
    .header,
    .header-main {
        padding: 12px 0;
    }
    
    .header-content,
    .header-container {
        padding: 0;
        gap: 8px;
    }
    
    /* Уменьшаем логотип */
    .logo {
        font-size: 24px;
    }
    
    /* Адаптируем кнопки действий */
    .header-actions {
        gap: 8px;
    }
    
    .header-actions .btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-menu-btn,
    .mobile-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .nav-main,
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-medium);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(74, 222, 128, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-main.active,
    .nav.active {
        display: flex;
    }
    
    .nav-main a,
    .nav a {
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-actions .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        min-width: 100px;
    }
    
    /* Предотвратить горизонтальный скролл */
    body.menu-open {
        overflow: hidden;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    /* Betting Tips Tablet */
    .betting-tips-preview .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Sport Section Tablet */
    .sport-section h2 {
        font-size: 2.2rem;
    }
    
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    /* Header для маленьких экранов */
    .header,
    .header-main {
        padding: 8px 0;
    }
    
    .header-content,
    .header-container {
        gap: 4px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .header-actions .btn {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 40px;
        min-width: 40px;
        white-space: nowrap;
    }

    .header .logo img,
    .header-main .logo img {
        height: 32px !important;
    }

    .header .logo span,
    .header-main .logo span {
        font-size: 1.35rem !important;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .card-icon {
        font-size: 40px;
    }
    
    .card h3 {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Betting Tips Mobile */
    .betting-tips-preview .tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .betting-tips-preview .tip-card {
        padding: 1.5rem;
    }
    
    /* Таблицы на мобильных */
    .comparison-table,
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        width: 100%;
    }
    
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    /* Улучшенная адаптивность для всех grid */
    .features-grid,
    .cards-grid,
    .games-grid,
    .categories-grid,
    .providers-grid,
    .jackpots-grid,
    .tournaments-grid,
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Trust bar на мобильных */
    .trust-bar .trust-items {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    /* Улучшенные отступы контейнера */
    .container {
        padding: 0 1rem;
    }
    
    /* Улучшенные размеры шрифтов */
    body {
        font-size: 16px;
    }
    
    /* Все интерактивные элементы touch-friendly */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Исключения для текстовых ссылок */
    .nav a,
    .breadcrumbs a,
    .footer-links a {
        min-width: auto;
    }
    
    .betting-tips-preview .tip-card h3 {
        font-size: 1.1rem;
    }
    
    .betting-tips-preview .tip-card p {
        font-size: 0.9rem;
    }
    
    /* Sport Section Mobile */
    .sport-section h2 {
        font-size: 2rem;
    }
    
    .sport-section .section-subtitle {
        font-size: 1rem;
    }
    
    .sports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sport-card {
        padding: 1.5rem;
    }
    
    .sport-card h3 {
        font-size: 1.2rem;
    }
    
    .sport-card p {
        font-size: 0.85rem;
    }
    
    .sport-card {
        padding: 1.5rem !important;
        min-height: 180px !important;
    }
    
    .sport-icon {
        font-size: 2.5rem !important;
    }
    
    .sport-card h3 {
        font-size: 1.2rem !important;
    }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    /* Header для очень маленьких экранов */
    .header,
    .header-main {
        padding: 6px 0;
    }
    
    .header-content,
    .header-container {
        gap: 2px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .header-actions {
        gap: 3px;
    }
    
    .header-actions .btn {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 38px;
        min-width: 38px;
    }
    
    /* Кнопка Login становится иконкой */
    .btn-outline,
    .btn-login {
        padding: 8px !important;
        min-width: 38px;
        overflow: hidden;
        text-indent: -9999px;
        position: relative;
    }
    
    .btn-outline::before,
    .btn-login::before {
        content: "👤";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-indent: 0;
        font-size: 16px;
    }
}

/* ===== Sport Section Styles ===== */
.sport-section {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    padding: 100px 0;
}

.sport-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 1rem;
}

.sport-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sport-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin: 3rem 0 2rem;
}

/* ===== Betting Tips Preview Section ===== */
.betting-tips-preview {
    background: linear-gradient(180deg, rgba(74, 222, 128, 0.05) 0%, transparent 100%);
    padding: 100px 0;
}

.betting-tips-preview h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 1rem;
}

.betting-tips-preview .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.betting-tips-preview .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.betting-tips-preview .tip-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    display: block !important;
    position: relative !important;
    min-height: 200px !important;
}

.betting-tips-preview .tip-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.2) !important;
    background: rgba(74, 222, 128, 0.05) !important;
}

.betting-tips-preview .tip-badge {
    display: inline-block !important;
    padding: 0.4rem 1rem !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 1rem !important;
}

.betting-tips-preview .tip-badge.fotboll {
    background: rgba(74, 222, 128, 0.2) !important;
    color: var(--primary) !important;
}

.betting-tips-preview .tip-badge.hockey {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
}

.betting-tips-preview .tip-badge.live {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

.betting-tips-preview .tip-card h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem !important;
    color: var(--text-white) !important;
    font-weight: 600 !important;
}

.betting-tips-preview .tip-card p {
    color: var(--text-secondary) !important;
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

.betting-tips-preview .tip-card a {
    color: var(--primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 0.9rem !important;
}

.betting-tips-preview .tip-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.section-badge.sport {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.feature-card.sport {
    border-color: rgba(59, 130, 246, 0.2);
}

.feature-card.sport:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Sports Grid */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

/* Force sport-card styles to apply */
.sports-grid .sport-card,
.sport-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 200px !important;
    margin-bottom: 1rem !important;
}

/* Ensure sport-card elements are properly styled */
.sport-card .sport-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
    color: var(--text-white) !important;
}

.sport-card h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-white) !important;
    margin-bottom: 0.5rem !important;
}

.sport-card p {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
}

.sport-card .badge {
    display: inline-block !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-top: 0.5rem !important;
}

/* Hover effects for sport-card */
.sport-card:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2) !important;
}

.sport-card:hover .sport-icon {
    transform: scale(1.1) !important;
}

.sport-card:hover h3 {
    color: #3b82f6 !important;
}

.sport-card:hover p {
    color: var(--text-white) !important;
}

.sport-card:hover .badge {
    transform: scale(1.05) !important;
}

/* Badge styles */
.badge.live {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    animation: pulse-badge 2s infinite !important;
}

.badge:not(.live) {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.sports-grid .sport-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.sports-grid .sport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.sports-grid .sport-card:hover::before {
    opacity: 1;
}

.sports-grid .sport-card:hover,
.sport-card:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2) !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.sports-grid .sport-card > * {
    position: relative;
    z-index: 2;
}

.sport-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.sport-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.sport-card:hover::before {
    opacity: 1;
}

.sport-card > * {
    position: relative;
    z-index: 2;
}

.sport-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.sport-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
    transition: transform 0.3s ease !important;
    color: var(--text-white) !important;
}

.sport-card:hover .sport-icon {
    transform: scale(1.1);
}

.sport-card h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-white) !important;
    margin-bottom: 0.5rem !important;
    transition: color 0.3s ease !important;
}

.sport-card:hover h3 {
    color: #3b82f6;
}

.sport-card p {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
    transition: color 0.3s ease !important;
}

.sport-card:hover p {
    color: var(--text-white);
}

.sport-card .badge {
    display: inline-block !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    margin-top: 0.5rem !important;
}

.sport-card:hover .badge {
    transform: scale(1.05);
}

.badge.live {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    animation: pulse-badge 2s infinite !important;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.badge.hot {
    background: rgba(249, 115, 22, 0.2) !important;
    color: #f97316 !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
}

.badge:not(.live):not(.hot) {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.badge.popular {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge.new {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Sport Section Buttons */
.sport-section .btn-sport {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sport-section .btn-sport:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.betting-tips-preview .btn-tips {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.betting-tips-preview .btn-tips:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

@keyframes pulse-badge {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

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

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

.sport-card:nth-child(1) { animation-delay: 0.1s; }
.sport-card:nth-child(2) { animation-delay: 0.2s; }
.sport-card:nth-child(3) { animation-delay: 0.3s; }
.sport-card:nth-child(4) { animation-delay: 0.4s; }
.sport-card:nth-child(5) { animation-delay: 0.5s; }
.sport-card:nth-child(6) { animation-delay: 0.6s; }

/* Additional sport-card enhancements */
.sport-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 15px;
}

.sport-card:hover::after {
    opacity: 1;
}

.sport-card > * {
    position: relative;
    z-index: 2;
}

/* Betting Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
}

.tip-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tip-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tip-badge.fotboll {
    background: rgba(74, 222, 128, 0.2);
    color: var(--primary);
}

.tip-badge.hockey {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.tip-badge.live {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.tip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.tip-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tip-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Sport CTA Button */
.btn-sport {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-sport:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* Error states */
.input-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

input.error {
    border-color: #ef4444 !important;
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    z-index: 10000;
    pointer-events: none;
    animation: tooltip-fade-in 0.2s;
}

@keyframes tooltip-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Odds flash animation */
@keyframes odds-flash {
    0%, 100% { background: transparent; }
    50% { background: rgba(74, 222, 128, 0.3); }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}
