/* Enhanced Cringe Generator Pro Styles */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Creepster&family=Papyrus&display=swap');

.cringe-bg-pro {
    background: linear-gradient(45deg, #ff00ff, #00ff00, #ff6600, #ff00ff, #0066ff, #ff00ff);
    background-size: 600% 600%;
    animation: cringe-gradient-pro 6s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes cringe-gradient-pro {
    0% { background-position: 0% 50%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.cringe-particles::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,0,255,0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0,255,0,0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,0,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particles-float 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particles-float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.cringe-title-pro {
    text-shadow: 
        3px 3px 0px #000, 
        -1px -1px 0px #000, 
        1px -1px 0px #000, 
        -1px 1px 0px #000,
        0 0 20px #ff00ff,
        0 0 40px #ff00ff;
    animation: cringe-wobble-pro 3s ease-in-out infinite, title-glow 2s ease-in-out infinite alternate;
}

.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-flow 3s ease infinite;
}

@keyframes rainbow-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes title-glow {
    0% { filter: brightness(1) contrast(1); }
    100% { filter: brightness(1.2) contrast(1.1) saturate(1.2); }
}

.cringe-subtitle {
    animation: subtitle-fade 3s ease-in-out infinite;
}

@keyframes subtitle-fade {
    0%, 80%, 100% { opacity: 1; }
    90% { opacity: 0.7; }
}

@keyframes cringe-wobble-pro {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.01); }
    50% { transform: rotate(0deg) scale(1.02); }
    75% { transform: rotate(-2deg) scale(1.01); }
}

.cringe-button-pro {
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.cringe-button-pro:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 16px rgba(255,0,255,0.4);
}

.cringe-button-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cringe-button-pro:hover::before {
    left: 100%;
}

.cringe-selected {
    animation: selected-pulse 2s ease-in-out infinite;
}

@keyframes selected-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,0,255,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,0,255,0.8), 0 0 30px rgba(255,0,255,0.4); }
}

.cringe-wobble-pro {
    animation: button-wobble-pro 0.5s ease-in-out;
    position: relative;
}

.cringe-wobble-pro:hover {
    animation: button-wobble-pro 0.3s ease-in-out infinite;
}

@keyframes button-wobble-pro {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.02); }
    50% { transform: rotate(0deg) scale(1.05); }
    75% { transform: rotate(-2deg) scale(1.02); }
}

.cringe-slider-pro {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, #22c55e, #facc15, #f97316, #ef4444, #7c3aed, #ec4899);
    outline: none;
    appearance: none;
    position: relative;
}

.cringe-slider-pro::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #8b5cf6, #ec4899);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 0 0 2px #8b5cf6;
    transition: all 0.2s ease;
}

.cringe-slider-pro::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0,0,0,0.6), 0 0 0 3px #ec4899;
}

.cringe-slider-pro::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #8b5cf6, #ec4899);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.cringe-pulse-intense {
    animation: cringe-pulse-intense 1.5s ease-in-out infinite;
}

@keyframes cringe-pulse-intense {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.2) saturate(1.3); }
}

.screen-shake-pro {
    animation: screen-shake-pro 1.5s ease-in-out;
}

@keyframes screen-shake-pro {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    10% { transform: translateX(-5px) translateY(-2px) rotate(-1deg); }
    20% { transform: translateX(5px) translateY(2px) rotate(1deg); }
    30% { transform: translateX(-3px) translateY(-3px) rotate(-1deg); }
    40% { transform: translateX(3px) translateY(1px) rotate(1deg); }
    50% { transform: translateX(-2px) translateY(2px) rotate(-0.5deg); }
    60% { transform: translateX(2px) translateY(-1px) rotate(0.5deg); }
    70% { transform: translateX(-1px) translateY(-2px) rotate(-0.5deg); }
    80% { transform: translateX(1px) translateY(1px) rotate(0.5deg); }
    90% { transform: translateX(-1px) translateY(0px) rotate(0deg); }
}

.warning-pulse {
    animation: warning-pulse 1s ease-in-out infinite;
}

@keyframes warning-pulse {
    0%, 100% { transform: scale(1); border-color: #facc15; }
    50% { transform: scale(1.02); border-color: #ef4444; }
}

.cringe-output-glow {
    position: relative;
}

.cringe-output-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff00ff, #00ff00, #ffff00, #ff00ff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
    animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ticker-scroll {
    white-space: nowrap;
    overflow: hidden;
    animation: ticker-scroll 15s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced scrollbar for maximum cringe */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #ff00ff, #00ff00, #ff6600);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8b5cf6, #ec4899);
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7c3aed, #db2777);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}

/* Deliberately clashing font combinations for extra cringe */
h1, h2, h3 {
    font-family: 'Creepster', cursive !important;
}

.cringe-subtitle {
    font-family: 'Papyrus', fantasy !important;
}

/* Enhanced cursor effects */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">😬</text></svg>'), auto;
}

button:hover {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text y="20" font-size="20">💀</text></svg>'), pointer;
}

/* Mobile responsiveness with extra chaos */
@media (max-width: 768px) {
    .cringe-title-pro {
        font-size: 3rem;
    }
    
    .cringe-particles::before {
        animation-duration: 15s;
    }
    
    .screen-shake-pro {
        animation-duration: 1s;
    }
}

/* High contrast accessibility mode (somehow even more jarring) */
@media (prefers-contrast: high) {
    .cringe-bg-pro {
        background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ffff00);
    }
    
    .cringe-button-pro {
        border: 3px solid #000000;
    }
}

/* Reduced motion for sensitive users */
@media (prefers-reduced-motion: reduce) {
    .cringe-title-pro,
    .cringe-wobble-pro,
    .cringe-particles::before,
    .ticker-scroll,
    .rainbow-text {
        animation: none;
    }
    
    .screen-shake-pro {
        animation: none;
        transform: none;
    }
}

/* Print styles (because why not make printed cringe too) */
@media print {
    .cringe-bg-pro {
        background: repeating-linear-gradient(
            45deg,
            #000,
            #000 10px,
            #fff 10px,
            #fff 20px
        );
    }
    
    .cringe-title-pro {
        color: #000 !important;
        text-shadow: none;
    }
}