/* Trending Effects 2024-2025 */

/* Skeleton Loading with Shimmer */
.skeleton-shimmer-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line:nth-child(1) { width: 80%; }
.skeleton-line:nth-child(2) { width: 100%; }
.skeleton-line:nth-child(3) { width: 65%; }

.skeleton-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 12px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Fluid Tab Underline */
.fluid-tab-demo {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.fluid-tab {
    flex: 1;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.fluid-tab.active {
    color: #00ff88;
}

.fluid-underline {
    position: absolute;
    bottom: 2px;
    height: 3px;
    background: #00ff88;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 33.33%;
    left: 0;
}

/* Mesh Gradient */
.mesh-gradient-demo {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 40% 20%, #ff006e 0px, transparent 50%),
        radial-gradient(at 80% 0%, #00ff88 0px, transparent 50%),
        radial-gradient(at 0% 50%, #3a86ff 0px, transparent 50%),
        radial-gradient(at 80% 80%, #ffbe0b 0px, transparent 50%),
        radial-gradient(at 0% 100%, #fb5607 0px, transparent 50%);
    animation: meshMove 20s ease infinite;
    filter: blur(40px) saturate(150%);
    opacity: 0.8;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -30px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
}

/* Emoji Reaction Picker */
.emoji-reaction-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.emoji-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.emoji-btn:hover {
    transform: scale(1.2) translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.5);
}

.emoji-btn.selected {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
    animation: emojiPop 0.6s ease;
}

@keyframes emojiPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3) rotate(-5deg); }
    100% { transform: scale(1); }
}

.emoji-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    opacity: 0;
}

.emoji-btn.selected .particle {
    animation: particleBurst 0.6s ease forwards;
}

.emoji-btn.selected .particle:nth-child(1) { top: 50%; left: 50%; --angle: 0deg; }
.emoji-btn.selected .particle:nth-child(2) { top: 50%; left: 50%; --angle: 72deg; }
.emoji-btn.selected .particle:nth-child(3) { top: 50%; left: 50%; --angle: 144deg; }
.emoji-btn.selected .particle:nth-child(4) { top: 50%; left: 50%; --angle: 216deg; }
.emoji-btn.selected .particle:nth-child(5) { top: 50%; left: 50%; --angle: 288deg; }

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-30px);
    }
}

/* Radial Navigation Menu */
.radial-menu-demo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radial-center {
    width: 60px;
    height: 60px;
    background: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    position: relative;
}

.radial-center:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
}

.radial-center::before {
    content: '+';
    font-size: 30px;
    color: #0a0a0a;
    font-weight: bold;
    transition: transform 0.3s;
}

.radial-menu-demo.active .radial-center::before {
    transform: rotate(45deg);
}

.radial-item {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 50%;
    top: 50%;
    cursor: pointer;
}

.radial-menu-demo.active .radial-item {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.radial-menu-demo.active .radial-item:nth-child(2) {
    left: calc(50% + 80px);
    transition-delay: 0.05s;
}

.radial-menu-demo.active .radial-item:nth-child(3) {
    left: calc(50% + 57px);
    top: calc(50% + 57px);
    transition-delay: 0.1s;
}

.radial-menu-demo.active .radial-item:nth-child(4) {
    top: calc(50% + 80px);
    transition-delay: 0.15s;
}

.radial-menu-demo.active .radial-item:nth-child(5) {
    left: calc(50% - 57px);
    top: calc(50% + 57px);
    transition-delay: 0.2s;
}

.radial-menu-demo.active .radial-item:nth-child(6) {
    left: calc(50% - 80px);
    transition-delay: 0.25s;
}

.radial-item:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translate(-50%, -50%) scale(1.2);
}

.radial-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

/* Floating Action Island */
.action-island-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.action-island {
    background: #00ff88;
    color: #0a0a0a;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.island-icon {
    width: 20px;
    height: 20px;
    background: #0a0a0a;
    border-radius: 50%;
    transition: all 0.3s;
}

.island-content {
    max-width: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
    overflow: hidden;
}

.action-island.expanded {
    padding: 16px 32px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
}

.action-island.expanded .island-icon {
    transform: rotate(180deg);
}

.action-island.expanded .island-content {
    max-width: 200px;
    opacity: 1;
    margin-left: 8px;
}

/* Gesture Trail Effect */
.gesture-trail-demo {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: crosshair;
}

.trail-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
}

/* Smart Form Validation */
.smart-form-demo {
    padding: 20px;
}

.form-field {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.08);
}

.form-input.valid {
    border-color: #00ff88;
}

.form-input.invalid {
    border-color: #ff4757;
}

.validation-feedback {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
}

.validation-feedback.show {
    opacity: 1;
}

.validation-feedback.success {
    color: #00ff88;
}

.validation-feedback.error {
    color: #ff4757;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.form-hint.show {
    height: auto;
    margin-top: 8px;
}

/* Proximity Hover */
.proximity-hover-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
    padding: 20px;
}

.proximity-item {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.proximity-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    transition: all 0.3s;
    transform: translate(-50%, -50%);
}

.proximity-item.near {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

.proximity-item.near::before {
    width: 150%;
    height: 150%;
}

.proximity-item.very-near {
    transform: scale(1.2);
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

/* Adaptive Icons */
.adaptive-icons-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 100%;
    padding: 20px;
}

.adaptive-icon {
    width: 60px;
    height: 60px;
    cursor: pointer;
    position: relative;
}

.icon-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Play/Pause Icon */
.play-pause .icon-shape {
    background: #00ff88;
    clip-path: polygon(25% 15%, 25% 85%, 75% 50%);
}

.play-pause.playing .icon-shape {
    clip-path: polygon(30% 20%, 30% 80%, 45% 80%, 45% 20%, 55% 20%, 55% 80%, 70% 80%, 70% 20%);
}

/* Menu/Close Icon */
.menu-close {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.menu-line {
    width: 30px;
    height: 3px;
    background: #00ff88;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-close.active .menu-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-close.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-close.active .menu-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Search/Clear Icon */
.search-clear {
    position: relative;
}

.search-circle {
    width: 40px;
    height: 40px;
    border: 3px solid #00ff88;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-handle {
    position: absolute;
    width: 15px;
    height: 3px;
    background: #00ff88;
    transform: rotate(45deg);
    right: 8px;
    bottom: 8px;
    transition: all 0.3s;
    transform-origin: right center;
}

.search-clear.active .search-circle {
    transform: rotate(90deg);
}

.search-clear.active .search-handle {
    width: 25px;
    transform: rotate(-45deg) translateX(12px);
}

/* Smooth Scroll Progress */
.scroll-progress-demo {
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.scroll-content {
    height: 400px;
    padding: 20px;
    position: relative;
}

.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    transition: width 0.1s ease-out;
    position: relative;
    overflow: hidden;
}

.scroll-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: scrollShine 2s linear infinite;
}

@keyframes scrollShine {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.section-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s;
}

.section-marker.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.section-marker:nth-child(2) { left: 25%; }
.section-marker:nth-child(3) { left: 50%; }
.section-marker:nth-child(4) { left: 75%; }

/* Voice Wave Visualizer */
.voice-wave-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.voice-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 80px;
}

.wave-bar {
    width: 4px;
    background: #00ff88;
    border-radius: 2px;
    transition: height 0.15s ease;
}

.wave-bar:nth-child(1) { height: 20px; animation: wave1 1.2s ease-in-out infinite; }
.wave-bar:nth-child(2) { height: 40px; animation: wave2 1.2s ease-in-out infinite 0.1s; }
.wave-bar:nth-child(3) { height: 60px; animation: wave3 1.2s ease-in-out infinite 0.2s; }
.wave-bar:nth-child(4) { height: 40px; animation: wave2 1.2s ease-in-out infinite 0.3s; }
.wave-bar:nth-child(5) { height: 20px; animation: wave1 1.2s ease-in-out infinite 0.4s; }
.wave-bar:nth-child(6) { height: 30px; animation: wave4 1.2s ease-in-out infinite 0.5s; }
.wave-bar:nth-child(7) { height: 50px; animation: wave3 1.2s ease-in-out infinite 0.6s; }
.wave-bar:nth-child(8) { height: 30px; animation: wave4 1.2s ease-in-out infinite 0.7s; }
.wave-bar:nth-child(9) { height: 20px; animation: wave1 1.2s ease-in-out infinite 0.8s; }

@keyframes wave1 {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

@keyframes wave2 {
    0%, 100% { height: 40px; }
    50% { height: 60px; }
}

@keyframes wave3 {
    0%, 100% { height: 60px; }
    50% { height: 80px; }
}

@keyframes wave4 {
    0%, 100% { height: 30px; }
    50% { height: 50px; }
}

/* Contextual Tooltips */
.contextual-tooltip-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 100%;
    padding: 20px;
}

.tooltip-trigger {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    transform: translateY(-10px);
    visibility: visible;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-bottom: 8px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

.tooltip.contextual {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0a0a;
    font-weight: 600;
}

.tooltip.contextual::after {
    border-top-color: #00cc6a;
}

/* Micro Copy Animation */
.micro-copy-demo {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.micro-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeInWord 0.5s ease forwards;
}

.micro-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeInWord 0.5s ease forwards;
}

.micro-text span:nth-child(1) { animation-delay: 0.1s; }
.micro-text span:nth-child(2) { animation-delay: 0.2s; }
.micro-text span:nth-child(3) { animation-delay: 0.3s; }
.micro-text span:nth-child(4) { animation-delay: 0.4s; }
.micro-text span:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInWord {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ambient Background */
.ambient-bg-demo {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: ambientFloat 20s infinite ease-in-out;
}

.ambient-orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00ff88 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation-duration: 25s;
}

.ambient-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #3a86ff 0%, transparent 70%);
    bottom: -125px;
    right: -125px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.ambient-orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #ff006e 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes ambientFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

.ambient-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}