/* ============================================
   SORARE - Custom Styles
   ============================================ */

/* Custom Font Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --primary-red: #dc2626;
    --background-light: #f9fafb;
    --background-dark: #111827;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
}

/* Global Styles */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    color: white;
}

.logo-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.nav-link {
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link.active {
    color: var(--primary-orange);
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: transform 0.2s;
}

.btn-play:hover {
    transform: translateY(-2px);
    color: white;
}

/* Language Switcher */
.language-switcher .dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .dropdown-toggle:hover {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .dropdown-item:hover {
    background-color: #f3f4f6;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -288px;
    width: 288px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.mobile-menu-drawer.show {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1040;
}

.mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.mobile-menu-close:hover {
    background-color: #f3f4f6;
}

.mobile-menu-nav {
    padding: 1rem;
}

.mobile-menu-nav .nav-link {
    display: block;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.mobile-menu-nav .nav-link:hover {
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .desktop-nav {
        display: none !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-start {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.125rem;
    transition: transform 0.2s;
}

.btn-start:hover {
    transform: translateY(-2px);
    color: white;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: var(--primary-orange);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1.125rem;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    color: var(--primary-orange);
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer h6,
.site-footer .text-white {
    color: #ffffff !important;
}

.site-footer p,
.site-footer small,
.site-footer .text-muted {
    color: #e5e7eb !important;
    /* daha yüksek kontrast */
}

.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer .border-top {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

.footer-social a {
    color: #9ca3af;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: white;
}

/* Tables */
.table-custom {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-custom thead {
    background-color: #f9fafb;
}

.table-custom thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr {
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.table-custom tbody tr:hover {
    background-color: #f9fafb;
}

.table-custom tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* Forms & Filters */
.filter-section {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.btn-filter {
    background-color: #0d9488;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-filter:hover {
    background-color: #0f766e;
    color: white;
}

/* Player Avatar */
.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    /* Show head/top portion of the image */
}

/* Odds pill on home prediction cards */
.odds-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 60px;
    height: 20px;
    background: #00f3eb;
    color: #082f2a;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
    border: 2px solid #ffffff;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
}

/* Sorare Cards (Home) */
.sorare-card {
    border-radius: 16px !important;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    will-change: transform;
    background-clip: padding-box;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.sorare-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .15) !important;
}

.sorare-card .ratio {
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    flex-shrink: 0;
}

.sorare-card .p-2 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 576px) {
    .sorare-card:hover {
        transform: translateY(-3px) scale(1.01);
    }

    /* Mobilde kartlar için ekstra stil */
    .sorare-card {
        max-width: 100%;
    }
}

/* Desktop: always hide mobile menu overlay/drawer */
@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-menu-drawer {
        display: none !important;
    }
}

/* Utility Classes */
.text-orange {
    color: var(--primary-orange);
}

.bg-gradient-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1rem;
    }
}
