/* Custom Styles for Petanque Championship */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #fbbf24;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --light-blue: #93c5fd;
    --sky-blue: #bfdbfe;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: white;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Animation for cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card-slide {
    animation: slideIn 0.5s ease-out;
}

/* Trophy animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.trophy-animate {
    animation: bounce 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

table tr:nth-child(even) {
    background-color: #f9fafb;
}

table tr:hover {
    background-color: #eff6ff;
    transition: background-color 0.3s ease;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Match cards */
.match-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.match-card.finished {
    border-left-color: #10b981;
}

.match-card.upcoming {
    border-left-color: #3b82f6;
}

.match-card.live {
    border-left-color: #f59e0b;
    animation: pulse 2s infinite;
}

/* Standings medal colors */
.gold-medal {
    color: #fbbf24;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.silver-medal {
    color: #9ca3af;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bronze-medal {
    color: #d97706;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.8);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Welcome page specific styles */
.welcome-hero h1 {
    animation: slideIn 0.8s ease-out;
}

.welcome-content p {
    animation: slideIn 1s ease-out 0.2s backwards;
}

.welcome-buttons {
    animation: slideIn 1s ease-out 0.4s backwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 3rem !important;
    }
    
    .welcome-subtitle {
        font-size: 1.8rem !important;
    }
    
    .welcome-description {
        font-size: 1rem !important;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .welcome-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .welcome-btn {
        width: 100%;
    }
}

/* Hover effects */
a {
    transition: all 0.3s ease;
}

button {
    transition: all 0.3s ease;
    cursor: pointer;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button, a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
