/**
 * 3D Category Wheel styling
 */

.categories-wheel-3d {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.wheel-3d-container {
    perspective: 2000px;
    height: 700px;
    position: relative;
    margin: 60px auto;
    max-width: 100%;
}

.wheel-3d-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.wheel-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.wheel-item {
    position: absolute;
    width: 380px;
    height: 500px;
    left: 50%;
    top: 50%;
    margin-left: -190px;
    margin-top: -250px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.wheel-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.wheel-item:hover .wheel-item-inner { transform: scale(1.05) translateZ(30px); }

.wheel-item-front {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
}

.wheel-item:hover .wheel-item-front {
    border-color: var(--neon-blue);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wheel-item-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s;
}

.wheel-item:hover .wheel-item-image { transform: scale(1.1); }

.wheel-item-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    mix-blend-mode: multiply;
    transition: opacity 0.4s;
}

.wheel-item:hover .wheel-item-overlay { opacity: 0.8; }

.wheel-item-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    z-index: 2;
}

.wheel-emoji {
    font-size: 80px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 20px rgba(0, 212, 255, 0.5));
    animation: floatEmoji 3s ease-in-out infinite;
    transition: transform 0.3s;
}

@keyframes floatEmoji { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.wheel-item:hover .wheel-emoji { transform: scale(1.2) rotateZ(10deg); }

.wheel-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-shadow:
        0 2px 20px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wheel-desc {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-weight: 500;
}

.wheel-badge {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--neon-blue);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.1); } 50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.6), inset 0 0 30px rgba(0, 212, 255, 0.2); } }

.wheel-item.active .wheel-item-front {
    border-color: var(--neon-blue);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 100px var(--neon-blue);
    transform: scale(1.1);
}

.wheel-item.active .wheel-emoji { animation: activeEmoji 0.6s ease-out; }
@keyframes activeEmoji { 0% { transform: scale(0.8); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

.wheel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
    z-index: 100;
}

.wheel-nav-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 28px;
    pointer-events: all;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wheel-nav-btn:hover {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 40px var(--neon-blue), 0 10px 50px rgba(0, 0, 0, 0.4);
    transform: scale(1.15);
}

.wheel-indicators {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.wheel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.wheel-indicator:hover { background: rgba(255, 255, 255, 0.6); transform: scale(1.2); }

.wheel-indicator.active {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
    width: 40px;
    border-radius: 7px;
}

.selected-category-info {
    margin-top: 120px;
    text-align: center;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.selected-category-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.selected-category-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    line-height: 1.6;
}

.selected-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.selected-explore-btn:hover { transform: translateY(-4px); box-shadow: 0 15px 60px rgba(0, 212, 255, 0.6); }

.hero-features-row { display: flex; gap: 24px; margin-top: 40px; }
.hero-feature-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s; }
.hero-feature-item:hover { transform: translateY(-4px); border-color: var(--neon-blue); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3); }
.feature-icon-circle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)); border-radius: 50%; font-size: 20px; box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4); }

@media (max-width: 1024px) {
    .wheel-3d-container { height: 600px; }
    .wheel-item { width: 340px; height: 450px; margin-left: -170px; margin-top: -225px; }
    .wheel-controls { padding: 0 20px; }
    .wheel-nav-btn { width: 60px; height: 60px; }
}

@media (max-width: 768px) {
    .categories-wheel-3d { padding: 60px 0; }
    .wheel-3d-container { height: 550px; }
    .wheel-item { width: 300px; height: 420px; margin-left: -150px; margin-top: -210px; }
    .wheel-emoji { font-size: 60px; }
    .wheel-title { font-size: 26px; }
    .wheel-desc { font-size: 16px; }
    .wheel-controls { padding: 0 10px; }
    .wheel-nav-btn { width: 50px; height: 50px; }
    .selected-category-info { margin-top: 100px; padding: 28px; }
    .selected-category-title { font-size: 28px; }
    .selected-category-description { font-size: 16px; }
}

@media (max-width: 480px) {
    .wheel-item { width: 280px; height: 400px; margin-left: -140px; margin-top: -200px; }
    .wheel-item-content { padding: 24px; }
    .wheel-indicators { bottom: -70px; }
    .selected-explore-btn { padding: 14px 32px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.reduced-motion .wheel-item-inner, .reduced-motion .wheel-emoji, .reduced-motion .particle, .reduced-motion .cursor-trail { animation: none !important; transition: none !important; }
.reduced-motion .animated-background::before { animation: none !important; }
