/* v4-1.css - Royal Reels Casino Section Styles */

.section {
    background-color: white;
    scroll-margin-top: var(--header-height, 80px);
    position: relative;
    overflow: hidden
}

/* Subtle background pattern for sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 215, 0, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0
}

.section > * {
    padding: 32px 0;
    position: relative;
    z-index: 1
}

.section > :first-child {
    padding-top: 48px
}

.section > :last-child {
    padding-bottom: 48px
}

.section > .container {
    padding-left: var(--offsets);
    padding-right: var(--offsets)
}

/* Section variations */
.section--dark {
    background: linear-gradient(180deg, rgba(15, 10, 31, 0.98) 0%, rgba(26, 20, 37, 0.95) 100%);
    color: var(--text-main)
}

.section--light {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px)
}

.section--accent {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1)
}

.section--gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, rgba(251, 191, 36, 0.01) 100%);
    position: relative
}

.section--gold::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    animation: rr-shimmer 3s linear infinite
}

@keyframes rr-shimmer {
    0% { transform: translateX(-100%) }
    100% { transform: translateX(100%) }
}

/* Section with card style */
.section--card {
    margin: 32px 0;
    background: rgba(26, 20, 37, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2)
}

.section--card > :first-child {
    padding-top: 32px
}

.section--card > :last-child {
    padding-bottom: 32px
}

/* Full width sections */
.section--full {
    padding-left: 0;
    padding-right: 0
}

.section--full > .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0
}

/* Compact sections */
.section--compact > * {
    padding: 16px 0
}

.section--compact > :first-child {
    padding-top: 24px
}

.section--compact > :last-child {
    padding-bottom: 24px
}

/* Large sections */
.section--large > * {
    padding: 48px 0
}

.section--large > :first-child {
    padding-top: 64px
}

.section--large > :last-child {
    padding-bottom: 64px
}

/* Section dividers */
.section--divider-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    border-radius: 2px;
    z-index: 2
}

.section--divider-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7c3aed, transparent);
    border-radius: 2px;
    z-index: 2
}

/* Animated entrance for sections */
.section[data-animate="true"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease
}

.section[data-animate="true"].in-view {
    opacity: 1;
    transform: translateY(0)
}

/* Special hero section padding */
.section--hero > :first-child {
    padding-top: 64px
}

.section--hero > :last-child {
    padding-bottom: 64px
}

/* CTA section styling */
.section--cta {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative
}

.section--cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ffd700, #7c3aed, #ffd700);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.2;
    animation: rr-gradient-rotate 6s linear infinite
}

@keyframes rr-gradient-rotate {
    0% { filter: hue-rotate(0deg) }
    100% { filter: hue-rotate(360deg) }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section > * {
        padding: 28px 0
    }
    
    .section > :first-child {
        padding-top: 40px
    }
    
    .section > :last-child {
        padding-bottom: 40px
    }
}

@media (max-width: 768px) {
    .section {
        scroll-margin-top: var(--header-height, 60px)
    }
    
    .section > * {
        padding: 24px 0
    }
    
    .section > :first-child {
        padding-top: 32px
    }
    
    .section > :last-child {
        padding-bottom: 32px
    }
    
    .section--large > * {
        padding: 32px 0
    }
    
    .section--large > :first-child {
        padding-top: 48px
    }
    
    .section--large > :last-child {
        padding-bottom: 48px
    }
    
    .section--compact > * {
        padding: 12px 0
    }
    
    .section--compact > :first-child {
        padding-top: 16px
    }
    
    .section--compact > :last-child {
        padding-bottom: 16px
    }
    
    .section--card {
        margin: 16px 0;
        border-radius: 16px
    }
    
    .section--hero > :first-child {
        padding-top: 48px
    }
    
    .section--hero > :last-child {
        padding-bottom: 48px
    }
}

@media (max-width: 480px) {
    .section > * {
        padding: 16px 0
    }
    
    .section > :first-child {
        padding-top: 24px
    }
    
    .section > :last-child {
        padding-bottom: 24px
    }
}

/* Print styles */
@media print {
    .section {
        background: none !important;
        border: none !important;
        page-break-inside: avoid
    }
    
    .section::before,
    .section::after {
        display: none !important
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .section--gold::after,
    .section--cta::before {
        animation: none
    }
    
    .section[data-animate="true"] {
        opacity: 1;
        transform: none;
        transition: none
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .section--card {
        border-width: 2px;
        border-color: rgba(255, 215, 0, 0.3)
    }
    
    .section--accent,
    .section--cta {
        border-width: 2px
    }
}

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    .section {
        --section-bg: rgba(15, 10, 31, 0.98)
    }
}