/* Chaos Code Deluxe - Controlled Creative Storm Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-attachment: fixed;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Storm and Chaos Animations */
@keyframes storm-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    }
}

@keyframes chaos-swirl {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.05);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(0.95);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes breakthrough-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(5, 150, 105, 0.6);
    }
}

@keyframes controlled-chaos {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(2px) translateY(-2px);
    }
    50% {
        transform: translateX(-2px) translateY(2px);
    }
    75% {
        transform: translateX(2px) translateY(2px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes storm-build {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05) rotate(1deg);
        box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

@keyframes lightning-flash {
    0%, 100% {
        background: var(--beautiful-disaster);
        box-shadow: 0 0 0 rgba(220, 38, 38, 0);
    }
    50% {
        background: #EF4444;
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    }
}

/* Chaos-inspired hover effects */
button:hover:not(:disabled) {
    animation: storm-build 0.3s ease-out;
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:active {
    transform: translateY(0);
}

/* Beautiful disaster indicators with storm energy */
.storm-energy-zone {
    position: relative;
    overflow: hidden;
}

.storm-energy-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
    animation: storm-sweep 4s infinite;
}

@keyframes storm-sweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Chaos control visual effects */
.chaos-control-active {
    position: relative;
    background: linear-gradient(135deg, #1E3A8A 0%, #7C3AED 50%, #059669 100%);
}

.chaos-control-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.chaos-control-active:hover::after {
    transform: translateX(100%);
}

/* Storm mastery progress indicators */
.storm-mastery-meter {
    background: linear-gradient(90deg, #374151 0%, #1E3A8A 25%, #F59E0B 75%, #059669 100%);
    transition: all 0.7s ease;
    position: relative;
    overflow: hidden;
}

.storm-mastery-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: chaos-shimmer 3s infinite;
}

@keyframes chaos-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Beautiful chaos success celebrations */
.chaos-celebration {
    animation: breakthrough-glow 1s ease-out, chaos-swirl 2s ease-out;
    background: linear-gradient(135deg, #059669, #10B981, #34D399);
}

/* Controlled storm interaction patterns */
.controlled-storm-hover:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(5, 150, 105, 0.2));
    transition: background 0.3s ease;
    transform: scale(1.02);
}

/* Storm archive organization */
.storm-archive-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Chaos catalyst lock indicators */
.chaos-catalyst-locked {
    position: relative;
    opacity: 0.7;
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border: 2px solid #6B7280;
}

.chaos-catalyst-unlocked {
    background: linear-gradient(135deg, #1E3A8A 0%, #7C3AED 100%);
    border: 2px solid #F59E0B;
}

.chaos-catalyst-locked::before {
    content: '🔒';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #111827;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #6B7280;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Storm intensity indicators */
.storm-gentle { border-left: 4px solid #6B7280; }
.storm-active { border-left: 4px solid #1E3A8A; }
.storm-intense { border-left: 4px solid #F59E0B; }
.storm-master { border-left: 4px solid #059669; }

/* Anonymous storm mode */
.anonymous-storm-mode {
    filter: blur(1px) hue-rotate(15deg);
    transition: filter 0.4s ease;
}

.anonymous-storm-mode:hover {
    filter: blur(0px) hue-rotate(0deg);
}

/* Chaos translation tools */
.chaos-translation-ready {
    background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
    border: 1px solid #059669;
    position: relative;
}

.chaos-translation-ready::after {
    content: '💡';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #059669;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: breakthrough-glow 2s infinite;
}

/* Mobile optimizations for storm navigation */
@media (max-width: 768px) {
    .text-4xl { font-size: 1.875rem; line-height: 2.25rem; }
    .text-6xl { font-size: 2.5rem; line-height: 1; }
    .px-8 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    
    /* Larger tap targets for confident storm interaction */
    button { min-height: 48px; }
    
    /* Storm swipe gestures */
    .chaos-swipe-zone {
        touch-action: pan-y;
    }
}

/* Comfortable spacing for chaos appreciation */
.chaos-breathing-room {
    padding: 2.5rem;
    margin: 1.5rem 0;
}

/* Loading states with storm-building messages */
.loading-storm::after {
    content: 'Organizing your beautiful chaos...';
    animation: storm-dots 2s infinite;
}

.loading-breakthrough::after {
    content: 'Harnessing creative storm energy...';
    animation: storm-dots 2s infinite;
}

@keyframes storm-dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: #F59E0B;
        text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow: .25em 0 0 #F59E0B, .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow: .25em 0 0 #F59E0B, .5em 0 0 #F59E0B;
    }
}

/* Storm community features */
.storm-community-safe {
    background: linear-gradient(135deg, #064E3B 0%, #065F46 50%, #047857 100%);
    border: 1px solid #10B981;
}

/* Bulk chaos operations */
.bulk-chaos-storm {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Chaos mastery celebration effects */
.chaos-mastery-celebration {
    animation: storm-pulse 1s ease-out, controlled-chaos 2s ease-out;
    background: linear-gradient(135deg, #F59E0B, #EA580C, #DC2626);
}

/* Gentle, confidence-building storm transitions */
.gentle-storm-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gentle-storm-hover:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.2);
}

/* Storm pattern backgrounds */
.storm-pattern-bg {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 58, 138, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

/* Chaos success indicators */
.chaos-success {
    border: 2px solid #059669;
    background: linear-gradient(135deg, #064E3B, #065F46);
    animation: breakthrough-glow 0.5s ease-out;
}

/* Beautiful disaster status indicators */
.beautiful-disaster-indicator {
    position: relative;
}

.beautiful-disaster-indicator::before {
    content: '💫';
    position: absolute;
    top: -5px;
    right: -5px;
    animation: chaos-swirl 4s infinite;
}