/* Modern color scheme and variables */
:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #e0e0e0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 4rem auto;
    text-align: center;
}

h1 {
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.suggestion-container {
    background-color: var(--card-background);
    padding: 2rem;
    margin: 3rem 0;
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.suggestion-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.5s ease;
}

.suggestion-container:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 25px var(--shadow-color);
}

.suggestion-container:hover::after {
    width: 100px;
}

.suggestion-track {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    overflow: hidden;
    position: relative;
}

.suggestion-item {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: all 0.5s ease;
    width: 100%;
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.suggestion-item a:hover {
    opacity: 0.7;
}

#result {
    margin-top: 2rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    color: var(--accent-color);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    line-height: 1.4;
    padding: 0 1rem;
    visibility: hidden;
}

#result.show {
    opacity: 1;
    visibility: visible;
}

#result strong {
    font-weight: 500;
}

#result .recipe-hint {
    display: block;
    font-size: clamp(0.8rem, 3vw, 1rem);
    opacity: 0.8;
    margin-top: 0.5rem;
}

#spin-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3rem;
    border-radius: 4px;
}

#spin-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

#spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Add responsive design */
@media (max-width: 768px) {
    .container {
        width: 90%;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
    }

    .suggestion-item {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .suggestion-container {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    #spin-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Add styles for very small screens */
@media (max-width: 360px) {
    .container {
        width: 95%;
        margin: 1rem auto;
    }

    h1 {
        font-size: 1.8rem;
    }

    .suggestion-item {
        font-size: 1.3rem;
    }

    #result {
        font-size: 1.1rem;
    }

    #result .recipe-hint {
        font-size: 0.7rem;
    }
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #e74c3c;
}

.popup-title {
    margin: 0 0 1rem 0;
    color: #e74c3c;
    font-size: 1.5rem;
}

.popup-description {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
}

.suggestion-item {
    cursor: pointer;
    transition: transform 0.2s;
}

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