@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1014;
    color: #ffffff;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.glass-panel {
    background: rgba(35, 36, 45, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

.animate-fade-in-down {
    animation: fade-in-down 0.3s ease-out;
}

/* Navigation Active State */
.nav-item {
    transition: color 0.3s;
    color: #9ca3af;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-item:hover {
    color: #a855f7;
}

.nav-item.active {
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #a855f7;
}

/* Match Card Hover Effects */
.match-card {
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.3);
    background-color: #252630;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prose Styles for News Detail */
.prose {
    max-width: none;
}

.prose p {
    margin-bottom: 1rem;
}

.prose h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* League Accordion Animations */
.league-matches {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.league-matches.hidden {
    max-height: 0;
    opacity: 0;
}

.league-matches:not(.hidden) {
    max-height: 10000px;
    opacity: 1;
}

/* Smooth transitions for accordion buttons */
button[onclick^="toggleLeague"] {
    transition: all 0.2s ease;
}

button[onclick^="toggleLeague"]:active {
    transform: scale(0.98);
}

/* Responsive text truncation */
@media (max-width: 640px) {
    .truncate-mobile {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Mobile Match Card Optimizations */
@media (max-width: 640px) {
    .match-card .bg-\[#20212B\] {
        padding: 1rem !important;
        border-radius: 1.5rem !important;
    }
    
    /* Smaller team logos on mobile */
    .match-card img {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    /* Smaller scores on mobile */
    .match-card .text-4xl {
        font-size: 1.5rem !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    /* Adjust center info section */
    .match-card .min-w-\[140px\] {
        min-width: 100px !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Smaller badges and text */
    .match-card .text-xs {
        font-size: 0.65rem !important;
    }
    
    .match-card .px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .match-card .py-1 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    /* Compact time display */
    .match-card .px-6 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .match-card .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .match-card .text-lg {
        font-size: 0.875rem !important;
    }
    
    /* Reduce spacing between matches */
    .match-card {
        margin-bottom: 0.75rem !important;
    }
    
    /* Adjust gap between elements */
    .match-card .gap-4 {
        gap: 0.5rem !important;
    }
    
    .match-card .gap-8 {
        gap: 0.5rem !important;
    }
}

/* Notification Animations */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.3s ease-out;
}

/* Notification Container */
#notification-container {
    pointer-events: none;
}

#notification-container .notification-item {
    pointer-events: all;
    transition: all 0.3s ease;
}

#notification-container .notification-item:hover {
    transform: translateX(-5px);
}

/* Live page tabs - horizontal layout on all screens */
@media (max-width: 640px) {
    /* Adjust text size for better fit on mobile */
    .grid-cols-3 button span {
        font-size: 0.65rem !important;
    }
    
    /* Smaller icons on mobile */
    .grid-cols-3 button i {
        font-size: 0.7rem !important;
    }
    
    /* Compact badge numbers on mobile */
    .grid-cols-3 button .rounded-full {
        font-size: 0.6rem !important;
        padding: 0.125rem 0.25rem !important;
    }
}

/* Mobile Bottom Navigation (Modern Style) */
#mobile-bottom-nav {
    backdrop-filter: blur(20px);
}

/* Regular bottom nav items */
.bottom-nav-item {
    color: #6b7280;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

.bottom-nav-item.active {
    color: #a855f7;
}

.bottom-nav-item.active i {
    transform: scale(1.15);
}

/* Home button (center special) */
.bottom-nav-item-home {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item-home:active {
    transform: translateY(-2px) scale(0.95);
}

.bottom-nav-item-home.active .w-14 {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

.bottom-nav-item-home.active span {
    color: #a855f7;
    font-weight: 600;
}

.bottom-nav-item-home .w-14 {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item-home:hover .w-14 {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* Add safe area for devices with notch */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Adjust content padding for bottom nav on mobile */
@media (max-width: 768px) {
    #app-content {
        padding-bottom: 5rem;
    }
}

/* Hide mobile menu button when bottom nav is visible */
@media (max-width: 768px) {
    #mobile-menu-btn {
        display: none !important;
    }
    
    /* Hide desktop menu completely on mobile */
    #desktop-menu {
        display: none !important;
    }
}
