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

body {
    font-family: 'Inter', sans-serif;
    background: #0d0d1a;
    min-height: 100vh;
}

.app-container {
    background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 50%, #0d0d1a 100%);
    position: relative;
    overflow-x: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent);
    background-size: 250px 200px;
    animation: twinkle 5s infinite;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.main-title {
    font-family: 'Bebas Neue', sans-serif;
    background: linear-gradient(135deg, #FFE066 0%, #FF6B6B 50%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-weight: 300;
    letter-spacing: 1px;
}

.concept-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.concept-input:focus {
    outline: none;
    border-color: #FF6B6B;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.concept-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.random-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.random-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(20deg);
}

.generate-btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.5);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spicy-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-switch {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.toggle-switch.active::after {
    left: 20px;
}

.history-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.2s ease;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.banana-spinner {
    animation: spin 1s linear infinite, bounce 0.5s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.loading-text {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.error-text {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.retry-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #FF6B6B;
    color: #FF6B6B;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #FF6B6B;
    color: white;
}

.history-panel {
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.action-buttons {
    position: relative;
    z-index: 10;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.2s ease;
    font-weight: 500;
}

.action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tier-list-container {
    background: #1a1a2e;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.tier-list-title {
    font-family: 'Bebas Neue', sans-serif;
    background: #1a1a2e;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.tier-list-image-container {
    background: #12121f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-list-image {
    max-height: 500px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tier-row {
    min-height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.tier-row:last-child {
    border-bottom: none;
}

.tier-label {
    color: #1a1a2e;
    font-family: 'Bebas Neue', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tier-items {
    min-height: 60px;
    align-items: center;
    align-content: center;
}

.tier-item-text {
    transition: all 0.2s ease;
    cursor: default;
}

.tier-item-text:hover {
    transform: scale(1.05);
}

.item-name-text {
    display: inline-block;
    font-size: 14px;
    color: white;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .tier-label {
        min-width: 50px !important;
        width: 50px !important;
        font-size: 1.5rem !important;
    }
    
    .item-name-text {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .tier-row {
        min-height: 50px;
    }
    
    .generate-btn {
        width: 100%;
    }
    
    .tier-list-image {
        max-height: 300px;
    }
}

/* Glow effects for tier rows */
.tier-row:hover .tier-label {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Wiggle animation on item hover */
.tier-item-text:hover {
    animation: wiggle 0.3s ease;
}

@keyframes wiggle {
    0%, 100% { transform: scale(1.05) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-2deg); }
    75% { transform: scale(1.05) rotate(2deg); }
}