/* Absurdist Recipe Generator Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-style: italic;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Input Section */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.emoji-input-container {
    margin-bottom: 25px;
}

.emoji-input-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #444;
}

#emoji-input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 3px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

#emoji-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

#generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    width: 100%;
}

#generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Examples Section */
.examples {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.examples h3 {
    margin-bottom: 15px;
    color: #555;
}

.example-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.example-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.example-btn:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Recipe Output */
.recipe-output {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-height: 200px;
}

.welcome-message {
    text-align: center;
    color: #666;
}

.welcome-message h3 {
    color: #333;
    margin-bottom: 15px;
}

.welcome-message ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

.welcome-message li {
    margin-bottom: 8px;
}

.api-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    color: #856404;
}

/* Recipe Styles */
.recipe {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.recipe h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #eee;
}

.normal-recipe h3 {
    color: #2d5a27;
    border-bottom-color: #81c784;
}

.absurd-recipe h3 {
    color: #6a1b9a;
    border-bottom-color: #ba68c8;
    font-style: italic;
}

.recipe h4 {
    color: #555;
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.recipe ul, .recipe ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.recipe li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.normal-recipe ul li::marker {
    color: #4caf50;
}

.normal-recipe ol li::marker {
    color: #4caf50;
    font-weight: bold;
}

.absurd-recipe ul li::marker {
    color: #9c27b0;
}

.absurd-recipe ol li::marker {
    color: #9c27b0;
    font-weight: bold;
}

/* Emotion-based Recipe Styles */
.emotion-indicator {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.emotion-recipe h3 {
    font-style: italic;
}

.emotion-happy h3 {
    color: #ff9800;
    border-bottom-color: #ffcc02;
}

.emotion-sad h3 {
    color: #3f51b5;
    border-bottom-color: #7986cb;
}

.emotion-angry h3 {
    color: #f44336;
    border-bottom-color: #ef5350;
}

.emotion-love h3 {
    color: #e91e63;
    border-bottom-color: #f06292;
}

.emotion-excited h3 {
    color: #ff5722;
    border-bottom-color: #ff8a65;
}

.emotion-calm h3 {
    color: #009688;
    border-bottom-color: #4db6ac;
}

.emotion-scared h3 {
    color: #795548;
    border-bottom-color: #a1887f;
}

.emotion-sick h3 {
    color: #607d8b;
    border-bottom-color: #90a4ae;
}

.emotion-happy ul li::marker {
    color: #ff9800;
}

.emotion-sad ul li::marker {
    color: #3f51b5;
}

.emotion-angry ul li::marker {
    color: #f44336;
}

.emotion-love ul li::marker {
    color: #e91e63;
}

.emotion-excited ul li::marker {
    color: #ff5722;
}

.emotion-calm ul li::marker {
    color: #009688;
}

.emotion-scared ul li::marker {
    color: #795548;
}

.emotion-sick ul li::marker {
    color: #607d8b;
}

/* Error Styles */
.error {
    background: #ffebee;
    border: 2px solid #f44336;
    padding: 20px;
    border-radius: 10px;
    color: #c62828;
    text-align: center;
}

.error h3 {
    margin-bottom: 15px;
    color: #d32f2f;
}

.error ul {
    text-align: left;
    max-width: 400px;
    margin: 15px auto 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
}

.tech-note {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-section, .recipe-output {
        padding: 20px;
    }
    
    .example-buttons {
        grid-template-columns: 1fr;
    }
    
    #emoji-input {
        font-size: 1rem;
    }
    
    .recipe h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .input-section, .recipe-output {
        padding: 15px;
    }
    
    #emoji-input {
        padding: 12px;
    }
    
    #generate-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
