/* SuperGroup Sports & Gaming Theme */

/* Hero background for registration */
.supergroup-hero {
    background: linear-gradient(135deg, #1e40af 0%, #ef4444 100%);
    background-size: cover;
    background-position: center;
    min-height: 200px;
    border-radius: 12px;
    position: relative;
}

.supergroup-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.8);
    border-radius: 12px;
}

/* Sports-themed cards */
.sports-card {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sports-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.3);
}

.sports-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.3);
    outline: 3px solid rgba(30, 64, 175, 0.6);
    outline-offset: 2px;
}

/* Gaming-style buttons */
.btn-supergroup {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-supergroup:hover {
    background: linear-gradient(45deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: white;
}

/* SuperGroup Green Button Theme */
.btn-primary, .btn-outline-primary {
    background: linear-gradient(45deg, #16a34a, #15803d) !important;
    border: none !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.3) !important;
    text-decoration: none;
}

.btn-primary:hover, .btn-outline-primary:hover {
    background: linear-gradient(45deg, #15803d, #166534) !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(22, 163, 74, 0.4) !important;
    color: white !important;
    border: none !important;
}

.btn-primary:active, .btn-outline-primary:active {
    background: linear-gradient(45deg, #166534, #14532d) !important;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2) !important;
}

.btn-primary:focus, .btn-outline-primary:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25) !important;
}

/* Small buttons */
.btn-sm.btn-primary, .btn-sm.btn-outline-primary {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* Large buttons */
.btn-lg.btn-primary, .btn-lg.btn-outline-primary {
    padding: 12px 30px;
    font-size: 1.125rem;
}

/* Sports partnership styling */
.partnership-badge {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin: 5px;
}

/* Progress bar gaming style */
.progress-supergroup {
    background: #1f2937;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
}

.progress-supergroup .progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626, #b91c1c);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-supergroup .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* SuperGroup logo styling */
.supergroup-logo {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

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

/* Sports stats styling */
.stats-card {
    background: rgba(30, 64, 175, 0.05);
    border: 2px solid rgba(30, 64, 175, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(30, 64, 175, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
    transform: translateY(-3px);
}

.stats-card:focus-visible {
    background: rgba(30, 64, 175, 0.1);
    border-color: rgba(30, 64, 175, 0.2);
    transform: translateY(-3px);
    outline: 2px solid rgba(30, 64, 175, 0.5);
    outline-offset: 2px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 5px;
}

.stats-label {
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Brand Hero Banner */
.brand-hero {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8), rgba(139, 69, 19, 0.6)), 
                var(--hero-bg-image, url('../images/branding-hero.jpg'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.brand-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.7) 0%, 
        rgba(139, 69, 19, 0.5) 50%,
        rgba(30, 64, 175, 0.6) 100%);
    z-index: 1;
}

.brand-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.brand-hero .hero-content h1,
.brand-hero .hero-content h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.brand-hero .hero-content p {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0;
    opacity: 0.95;
}

/* Diagonal Slice Grid */
.slice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Diagonal Slice Cards */
.slice-card {
    background: linear-gradient(135deg, 
        var(--card-bg-primary, #1e40af), 
        var(--card-bg-secondary, #3b82f6));
    background-image: var(--card-bg-image, none);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    /* Ensure links display as block elements */
    display: block;
    text-decoration: none;
    color: inherit;
}

.slice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.85) 0%, 
        rgba(59, 130, 246, 0.75) 50%,
        rgba(22, 163, 74, 0.8) 100%);
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    transition: all 0.4s ease;
}

.slice-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(22, 163, 74, 0.9), 
        rgba(34, 197, 94, 0.8));
    z-index: 1;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    transition: all 0.4s ease;
}

.slice-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.slice-card:hover::before {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.9) 0%, 
        rgba(59, 130, 246, 0.85) 50%,
        rgba(22, 163, 74, 0.9) 100%);
}

.slice-card:hover::after {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    background: linear-gradient(45deg, 
        rgba(22, 163, 74, 1), 
        rgba(34, 197, 94, 0.95));
}

/* Focus states for keyboard navigation */
.slice-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.slice-card:focus-visible::before {
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    background: linear-gradient(135deg, 
        rgba(30, 64, 175, 0.9) 0%, 
        rgba(59, 130, 246, 0.85) 50%,
        rgba(22, 163, 74, 0.9) 100%);
}

.slice-card:focus-visible::after {
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    background: linear-gradient(45deg, 
        rgba(22, 163, 74, 1), 
        rgba(34, 197, 94, 0.95));
}

.slice-card:focus-visible .slice-card-icon {
    transform: scale(1.1);
    opacity: 1;
}

.slice-card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.slice-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.slice-card:hover .slice-card-icon {
    transform: scale(1.1);
    opacity: 1;
}

.slice-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slice-card-description {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.5;
}

.slice-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.slice-card-points {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.slice-card-action {
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slice-card-action:hover {
    background: rgba(255, 255, 255, 1);
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-hero {
        min-height: 200px;
        background-attachment: scroll;
        border-radius: 0 0 20px 20px;
    }
    
    .slice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slice-card {
        min-height: 180px;
    }
    
    .slice-card-content {
        padding: 20px;
    }
    
    .slice-card-icon {
        font-size: 2rem;
    }
    
    .slice-card-title {
        font-size: 1.2rem;
    }
}

/* Custom background image variants */
.slice-card.video-card {
    --card-bg-primary: #7c3aed;
    --card-bg-secondary: #8b5cf6;
}

.slice-card.form-card {
    --card-bg-primary: #059669;
    --card-bg-secondary: #10b981;
}

.slice-card.document-card {
    --card-bg-primary: #dc2626;
    --card-bg-secondary: #ef4444;
}

.slice-card.profile-card {
    --card-bg-primary: #ea580c;
    --card-bg-secondary: #f97316;
}

/* Accessibility: Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable animations for users who prefer reduced motion */
    .slice-card,
    .sports-card,
    .stats-card,
    .btn-supergroup,
    .btn-primary,
    .btn-outline-primary,
    .supergroup-logo,
    .slice-card-icon,
    .slice-card-action {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove transforms but keep other visual changes */
    .slice-card:hover,
    .slice-card:focus-visible {
        transform: none !important;
    }
    
    .sports-card:hover,
    .sports-card:focus-visible {
        transform: none !important;
    }
    
    .stats-card:hover,
    .stats-card:focus-visible {
        transform: none !important;
    }
    
    .btn-supergroup:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none !important;
    }
    
    .supergroup-logo:hover {
        transform: none !important;
    }
    
    .slice-card:hover .slice-card-icon,
    .slice-card:focus-visible .slice-card-icon {
        transform: none !important;
    }
    
    .slice-card-action:hover {
        transform: none !important;
    }
    
    /* Disable shine animation */
    .progress-supergroup .progress-bar::after {
        animation: none !important;
        display: none;
    }
    
    /* Use scroll instead of fixed attachment for better performance */
    .brand-hero {
        background-attachment: scroll !important;
    }
}