/* Custom CSS for ESport Crazy Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Colors */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --warning-color: #feca57;
    --success-color: #48dbfb;
    --dark-color: #2c2c54;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --gradient-accent: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-dark: linear-gradient(135deg, #2c2c54 0%, #40407a 100%);
    --gradient-gaming: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    --gradient-neon: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-dark-gold: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Navigation Styles */
.navbar {
    background: var(--gradient-dark) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--primary-color) !important;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-gaming);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

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

.hero-section h1 {
    animation: slideInLeft 1s ease-out;
}

.hero-section p {
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: slideInUp 1s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.review-card,
.news-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.review-card:hover,
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.review-card .card-img-top {
    transition: all 0.3s ease;
}

.review-card:hover .card-img-top {
    transform: scale(1.05);
}

.rating {
    font-size: 0.9rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    border-radius: 50px;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.display-5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Tournaments Section */
#tournaments {
    background: var(--gradient-neon);
}

#tournaments .card {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

#tournaments .card:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: translateY(-5px);
}

/* Footer Styles */
footer {
    background: var(--gradient-dark) !important;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary-color) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-icon {
        font-size: 6rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

/* 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) !important;
}

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

.shadow-lg-custom {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* GOD855 Review Section Styles */
.bg-gradient-dark-gold {
    background: var(--gradient-dark-gold) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%) !important;
}

.hover-text-primary:hover {
    color: var(--bs-primary) !important;
    transition: color 0.3s ease;
}

.hover-text-success:hover {
    color: var(--bs-success) !important;
    transition: color 0.3s ease;
}

.hover-text-info:hover {
    color: var(--bs-info) !important;
    transition: color 0.3s ease;
}

.hover-text-warning:hover {
    color: var(--bs-warning) !important;
    transition: color 0.3s ease;
}

.hover-text-danger:hover {
    color: var(--bs-danger) !important;
    transition: color 0.3s ease;
}

.hover-text-secondary:hover {
    color: var(--bs-secondary) !important;
    transition: color 0.3s ease;
}

/* Partner Links Hover Effects */
.hover-bg-primary {
    transition: all 0.3s ease;
}

.hover-bg-primary:hover {
    background: rgba(13, 110, 253, 0.2) !important;
    transform: translateX(5px);
}

.hover-bg-success {
    transition: all 0.3s ease;
}

.hover-bg-success:hover {
    background: rgba(25, 135, 84, 0.2) !important;
    transform: translateX(5px);
}

.hover-bg-info {
    transition: all 0.3s ease;
}

.hover-bg-info:hover {
    background: rgba(13, 202, 240, 0.2) !important;
    transform: translateX(5px);
}

.hover-bg-warning {
    transition: all 0.3s ease;
}

.hover-bg-warning:hover {
    background: rgba(255, 193, 7, 0.2) !important;
    transform: translateX(5px);
}

.hover-bg-danger {
    transition: all 0.3s ease;
}

.hover-bg-danger:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    transform: translateX(5px);
}

.hover-bg-secondary {
    transition: all 0.3s ease;
}

.hover-bg-secondary:hover {
    background: rgba(108, 117, 125, 0.2) !important;
    transform: translateX(5px);
}