:root {
    --hot-pink: #FF2D7B;
    --electric-yellow: #FFE135;
    --bright-orange: #FF6B35;
    --cyan: #00F5FF;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fire glow title */
@keyframes fireGlow {
    0%, 100% { text-shadow: 0 0 10px #FF6B35, 0 0 20px #FF6B35, 0 0 40px #FF2D7B, 0 0 80px #FF2D7B; }
    50% { text-shadow: 0 0 15px #FFE135, 0 0 30px #FF6B35, 0 0 60px #FF2D7B, 0 0 100px #FF6B35; }
}

.fire-title {
    font-family: 'Bungee Shade', cursive;
    animation: fireGlow 2s ease-in-out infinite;
}

.fire-title-sub {
    font-family: 'Bungee', cursive;
}

/* Pulsing neon border */
@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 5px var(--hot-pink), 0 0 10px var(--hot-pink), 0 0 20px var(--hot-pink); }
    50% { box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan), 0 0 40px var(--cyan); }
}

.neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulseOrange {
    0%, 100% { box-shadow: 0 0 5px var(--bright-orange), 0 0 15px var(--bright-orange); }
    50% { box-shadow: 0 0 10px var(--electric-yellow), 0 0 25px var(--electric-yellow); }
}

.neon-pulse-orange {
    animation: neonPulseOrange 1.5s ease-in-out infinite;
}

/* Generate button shake */
@keyframes btnShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.btn-shake:hover {
    animation: btnShake 0.5s ease-in-out;
}

/* Spin banana */
@keyframes spinBanana {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-banana {
    display: inline-block;
    animation: spinBanana 1s linear infinite;
}

/* Fade in */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scale pop */
@keyframes scalePop {
    0% { transform: scale(0.8); opacity: 0; }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.scale-pop {
    animation: scalePop 0.4s ease-out;
}

/* Floating emojis */
@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0.7; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.floating-emoji {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    animation: floatUp linear forwards;
}

/* Meme text style */
.meme-text {
    font-family: Impact, 'Arial Black', sans-serif;
    color: white;
    text-transform: uppercase;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--hot-pink); border-radius: 4px; }

/* Style card hover glow */
.style-card {
    transition: all 0.2s ease;
}
.style-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(255, 45, 123, 0.3);
}
.style-card.selected {
    transform: scale(1.05);
    border-color: var(--cyan) !important;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

/* Quick select pills */
.pill-btn {
    transition: all 0.2s ease;
}
.pill-btn:hover {
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
    transform: translateY(-1px);
}
.pill-btn.active {
    background: linear-gradient(135deg, var(--hot-pink), var(--bright-orange));
    box-shadow: 0 0 15px rgba(255, 45, 123, 0.5);
}

/* Generate button gradient */
.generate-btn {
    background: linear-gradient(135deg, var(--bright-orange), #e62e5c, var(--hot-pink));
    transition: all 0.2s ease;
}
.generate-btn:hover:not(:disabled) {
    filter: brightness(1.2);
    transform: scale(1.02);
}
.generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Gallery thumbnail */
.gallery-thumb {
    transition: all 0.2s ease;
}
.gallery-thumb:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 45, 123, 0.5);
}

/* Background noise effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 45, 123, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(0, 245, 255, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#root {
    position: relative;
    z-index: 1;
}

/* Meme image container */
.meme-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.meme-container img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.meme-top-text, .meme-bottom-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    font-size: clamp(18px, 4vw, 32px);
    padding: 4px;
    word-wrap: break-word;
}

.meme-top-text {
    top: 8px;
}

.meme-bottom-text {
    bottom: 16px;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Settings gear animation */
@keyframes gearSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(90deg); }
}

button[title="AI Settings"]:hover {
    animation: gearSpin 0.3s ease-out;
}

/* Select dropdown styling */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 32px !important;
}

select option {
    background: #1a1a1a;
    color: #fff;
}