/* Crazy Time Italia - Custom Styles */

/* Base Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6b21a8, #facc15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #fbbf24);
}

/* Selection */
::selection {
    background: rgba(250, 204, 21, 0.3);
    color: #fff;
}

/* Glass Panel Effect */
.glass-panel {
    background: rgba(107, 33, 168, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

/* Text Gradient */
.text-gradient-crazy {
    background: linear-gradient(90deg, #facc15, #f97316, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Wheel Glow Effect */
.wheel-glow {
    box-shadow: 
        0 0 30px rgba(250, 204, 21, 0.2),
        0 0 60px rgba(107, 33, 168, 0.15),
        inset 0 0 20px rgba(250, 204, 21, 0.05);
}

/* Button Hover Effects */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.game-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(250, 204, 21, 0.1);
}

/* Animated Border */
@keyframes border-dance {
    0%, 100% {
        border-color: rgba(250, 204, 21, 0.3);
    }
    25% {
        border-color: rgba(249, 115, 22, 0.3);
    }
    50% {
        border-color: rgba(239, 68, 68, 0.3);
    }
    75% {
        border-color: rgba(107, 33, 168, 0.3);
    }
}

.animate-border {
    animation: border-dance 4s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Spin Slow Animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(250, 204, 21, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Tab Button Styles */
.tab-btn {
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #facc15, #f97316) !important;
    color: #1a0a2e !important;
    border-color: transparent !important;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.tab-btn:not(.active):hover {
    background: rgba(107, 33, 168, 0.5);
    border-color: rgba(250, 204, 21, 0.3);
}

/* Range Slider Custom Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #6b21a8, #facc15);
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #facc15;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.7);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #facc15;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

/* SEO Text Block Styles */
.seo-text-block {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(26, 10, 46, 0.8);
    border-radius: 1.5rem;
    border: 1px solid rgba(250, 204, 21, 0.1);
}

.seo-text-content {
    color: #a1a1aa;
    line-height: 1.8;
    font-size: 0.95rem;
}

.seo-text-content h2 {
    color: #facc15;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(250, 204, 21, 0.2);
}

.seo-text-content h3 {
    color: #e879f9;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.seo-text-content p {
    margin-bottom: 1rem;
}

.seo-text-content ul,
.seo-text-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.seo-text-content li {
    margin-bottom: 0.5rem;
}

.seo-text-content li p {
    margin-bottom: 0;
}

.seo-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(107, 33, 168, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.seo-text-content th,
.seo-text-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
}

.seo-text-content th {
    background: rgba(250, 204, 21, 0.1);
    color: #facc15;
    font-weight: 600;
}

.seo-text-content tr:hover {
    background: rgba(107, 33, 168, 0.3);
}

/* Feature Cards Grid */
.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.seo-feature-card {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.3), rgba(250, 204, 21, 0.1));
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(250, 204, 21, 0.2);
    transition: all 0.3s ease;
}

.seo-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.4);
}

.seo-feature-title {
    color: #facc15;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.seo-feature-text {
    color: #a1a1aa;
    font-size: 0.875rem;
}

/* No Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Live Badge Animation */
@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.live-badge {
    animation: live-pulse 1.5s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .seo-text-block {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .seo-text-content h2 {
        font-size: 1.5rem;
    }
    
    .seo-text-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .seo-text-block {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .seo-text-content {
        font-size: 0.9rem;
    }
    
    .seo-text-content table {
        font-size: 0.85rem;
    }
    
    .seo-text-content th,
    .seo-text-content td {
        padding: 0.75rem 0.5rem;
    }
    
    .seo-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

/* Skip Link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: absolute;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #facc15;
    color: #1a0a2e;
    z-index: 9999;
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-header,
    .sticky-cta,
    footer {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .seo-text-content {
        color: #000;
    }
}