/* Results Section Styles - RODA - Premium Elegant Canvas Override */

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Results section background */
.results {
    padding: 120px 0 100px 0;
    background: 
        linear-gradient(135deg, #0a0a1a, #0f0f23, #1a1a2e, #16213e, #0f3460),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(254, 202, 87, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 40% 60%, rgba(255, 107, 107, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 60% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(34, 197, 94, 0.1) 0%, transparent 40%);
    z-index: 1;
    animation: backgroundFloat 25s ease-in-out infinite;
}

.results::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.01) 50%, transparent 70%);
    z-index: 1;
    animation: shimmer 15s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-30px) rotate(1deg) scale(1.02); 
        opacity: 1;
    }
    50% { 
        transform: translateY(15px) rotate(-0.5deg) scale(0.98); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-10px) rotate(0.5deg) scale(1.01); 
        opacity: 0.95;
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.results .container {
    position: relative;
    z-index: 2;
}

/* Section title */
.results .section-title {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 100px;
    text-align: center;
    position: relative;
    font-size: 4rem;
    line-height: 1.1;
    text-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(254, 202, 87, 0.3);
    animation: titlePulse 5s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 
            0 6px 12px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(59, 130, 246, 0.4),
            0 0 60px rgba(254, 202, 87, 0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(59, 130, 246, 0.6),
            0 0 80px rgba(254, 202, 87, 0.5);
        transform: scale(1.02);
    }
}



.results .section-title::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 10px;
    background: linear-gradient(90deg, #3B82F6, #feca57, #ff6b6b, #a855f7, #22c55e);
    border-radius: 5px;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.7),
        0 0 80px rgba(254, 202, 87, 0.5),
        0 0 120px rgba(255, 107, 107, 0.4),
        0 0 160px rgba(168, 85, 247, 0.3);
    animation: lineGlow 4s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    0% { 
        box-shadow: 
            0 0 40px rgba(59, 130, 246, 0.7),
            0 0 80px rgba(254, 202, 87, 0.5),
            0 0 120px rgba(255, 107, 107, 0.4),
            0 0 160px rgba(168, 85, 247, 0.3);
        transform: translateX(-50%) scaleX(1);
    }
    100% { 
        box-shadow: 
            0 0 60px rgba(59, 130, 246, 0.9),
            0 0 120px rgba(254, 202, 87, 0.7),
            0 0 180px rgba(255, 107, 107, 0.6),
            0 0 240px rgba(168, 85, 247, 0.5);
        transform: translateX(-50%) scaleX(1.1);
    }
}

/* Match Layout - CSS Grid for perfect centering */
.match-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.team-left {
    justify-self: start;
    text-align: left;
}

.vs-center {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-right {
    justify-self: end;
    text-align: right;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .match-layout {
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .match-layout {
        gap: 4px;
    }
    
    .team-left, .team-right {
        font-size: 0.9rem;
    }
}

/* VS and Result Text - Yellow text without background */
.vs-text, .result-text {
    color: #feca57 !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    text-shadow: 
        0 0 10px rgba(254, 202, 87, 0.6),
        0 0 20px rgba(254, 202, 87, 0.4),
        0 0 30px rgba(254, 202, 87, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.result-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.vs-text:hover, .result-text:hover {
    color: #ffcd6b !important;
    text-shadow: 
        0 0 15px rgba(254, 202, 87, 0.8),
        0 0 30px rgba(254, 202, 87, 0.6),
        0 0 45px rgba(254, 202, 87, 0.4);
    transform: scale(1.1);
}

/* First match card - Premium dark theme */
.results .card.dark {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%) !important;
    backdrop-filter: blur(30px);
    border: 3px solid rgba(255, 255, 255, 0.25) !important;
    color: white;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border-radius: 35px !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4), 
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 50px rgba(59, 130, 246, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
}

.results .card.dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(254, 202, 87, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results .card.dark:hover::before {
    opacity: 1;
}

.results .card.dark:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 40px rgba(59, 130, 246, 0.2);
}

.results .card.dark .card-body {
    color: white;
    position: relative;
    z-index: 2;
    padding: 40px 30px !important;
}

.results .card.dark h4 {
    color: white !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2.2rem;
    text-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 35px;
    position: relative;
}

.results .card.dark:hover h4 {
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 50px rgba(59, 130, 246, 0.4),
        0 0 75px rgba(254, 202, 87, 0.3);
    transform: scale(1.08);
}

.results .card.dark .badge.bg-warning {
    background: linear-gradient(135deg, #feca57, #ffcd6b, #fbbf24) !important;
    color: #1a1a2e !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 
        0 10px 30px rgba(254, 202, 87, 0.5),
        0 0 20px rgba(254, 202, 87, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    padding: 18px 30px;
    letter-spacing: 3px;
    border-radius: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { 
        box-shadow: 
            0 10px 30px rgba(254, 202, 87, 0.5),
            0 0 20px rgba(254, 202, 87, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 15px 40px rgba(254, 202, 87, 0.7),
            0 0 30px rgba(254, 202, 87, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.results .card.dark .badge.bg-warning:hover {
    transform: scale(1.15) rotate(1deg);
    box-shadow: 
        0 20px 50px rgba(254, 202, 87, 0.8),
        0 0 40px rgba(254, 202, 87, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.results .card.dark .badge.bg-white.bg-opacity-10 {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border: 3px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    font-weight: 500;
    font-style: italic;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    padding: 14px 22px;
    letter-spacing: 0.5px;
    border-radius: 20px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.results .card.dark .badge.bg-white.bg-opacity-10:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.6);
}

.results .card.dark .badge.bg-primary {
    background: linear-gradient(135deg, #3B82F6, #60A5FA) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 12px 20px;
    letter-spacing: 1px;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results .card.dark .badge.bg-primary:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #60A5FA, #93C5FD) !important;
}

/* First card "više" button - same style as other fields */
.results .card.dark .badge.bg-white.bg-opacity-10 a {
    color: white !important;
    text-decoration: none !important;
}

.results .card.dark .badge.bg-white.bg-opacity-10 a:hover {
    color: white !important;
    text-decoration: none !important;
}

/* Second/third match cards - Clean white theme */
.results .card.bg-white {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    color: #1a1a2e;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

.results .card.bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(254, 202, 87, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results .card.bg-white:hover::before {
    opacity: 1;
}

.results .card.bg-white:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(0, 0, 0, 0.1),
                0 0 30px rgba(59, 130, 246, 0.15);
}

.results .card.bg-white .card-body {
    color: #1a1a2e;
    position: relative;
    z-index: 2;
    padding: 30px 25px !important;
}

.results .card.bg-white .fw-bold {
    color: #1a1a2e !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.results .card.bg-white:hover .fw-bold {
    color: #3B82F6 !important;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.results .card.bg-white .badge.bg-warning {
    background: linear-gradient(135deg, #feca57, #ffcd6b) !important;
    color: #1a1a2e !important;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.3);
    transition: all 0.3s ease;
    padding: 10px 18px;
    letter-spacing: 1.5px;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.results .card.bg-white .badge.bg-warning:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(254, 202, 87, 0.5);
}

.results .card.bg-white .badge.bg-light {
    background: rgba(26, 26, 46, 0.05) !important;
    color: #1a1a2e !important;
    border: 2px solid rgba(26, 26, 46, 0.2) !important;
    backdrop-filter: blur(20px);
    font-weight: 500 !important;
    font-style: italic !important;
    font-size: 0.85rem !important;
    transition: all 0.4s ease;
    padding: 8px 12px !important;
    letter-spacing: 0.3px !important;
    border-radius: 15px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.results .card.bg-white .badge.bg-light:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3B82F6 !important;
    transform: translateY(-2px) scale(1.02) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

.results .card.bg-white .btn-primary,
.results .card.bg-white .btn-primary.btn-sm {
    background: rgba(26, 26, 46, 0.05) !important;
    border: 2px solid rgba(26, 26, 46, 0.2) !important;
    color: #1a1a2e !important;
    backdrop-filter: blur(20px);
    font-weight: 500 !important;
    font-style: italic !important;
    font-size: 0.85rem !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    padding: 8px 12px !important;
    letter-spacing: 0.3px !important;
    border-radius: 15px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-decoration: none !important;
}

.results .card.bg-white .btn-primary:hover,
.results .card.bg-white .btn-primary.btn-sm:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #3B82F6 !important;
    transform: translateY(-2px) scale(1.02) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Results list card - Premium dark theme */
.results .card.dark .card-header {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px 25px 0 0 !important;
    padding: 25px 30px !important;
}

.results .card.dark .card-title {
    color: white !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0;
}

.results .card.dark .text-white {
    color: white !important;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.results .card.dark .text-white:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.results .card.dark .text-white.fw-bold {
    color: white !important;
    font-weight: 800 !important;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
}

.results .card.dark .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.results .card.dark .badge.bg-warning {
    background: linear-gradient(135deg, #feca57, #ffcd6b) !important;
    color: #1a1a2e !important;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.4);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 10px 15px;
    letter-spacing: 1px;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.results .card.dark .badge.bg-warning:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(254, 202, 87, 0.6);
}

.results .card.dark .card-footer {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 0 25px 25px !important;
    padding: 25px 30px !important;
}

.results .card.dark .btn-warning {
    background: linear-gradient(135deg, #feca57, #ff6b6b) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(254, 202, 87, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 15px 25px;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results .card.dark .btn-warning:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(254, 202, 87, 0.6);
    background: linear-gradient(135deg, #ffcd6b, #ff8b8b) !important;
}

/* Button overrides with premium effects */
.results .btn-primary {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
    border: none !important;
    color: white !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    font-size: 1.2rem;
    padding: 18px 30px;
    border-radius: 15px !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.results .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 
                0 0 25px rgba(59, 130, 246, 0.6),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #60A5FA, #3B82F6) !important;
}

/* Hover effects for cards with premium transforms */
.results .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.results .card:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2),
                0 0 40px rgba(59, 130, 246, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .results {
        padding: 60px 0 40px 0;
    }
    
    .results .section-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
        margin-bottom: 40px;
    }
    
    .results .card.dark .card-body,
    .results .card.bg-white .card-body {
        padding: 25px 20px !important;
    }
    
    .results .card.dark h4 {
        font-size: 1.5rem;
    }
    
    .results .card.bg-white .fw-bold {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .results .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .results .card.dark .card-body,
    .results .card.bg-white .card-body {
        padding: 20px 15px !important;
    }
    
    .results .card.dark h4 {
        font-size: 1.3rem;
    }
    
    .results .card.bg-white .fw-bold {
        font-size: 1rem;
    }
}