@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #ff6b6b;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.tagline {
    text-align: center;
    color: #4ecdc4;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.input-section {
    display: flex;
    margin-bottom: 30px;
}

#ingredients {
    flex-grow: 1;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #4ecdc4;
    border-radius: 5px 0 0 5px;
    outline: none;
}

#generate-recipe {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#generate-recipe:hover {
    background-color: #ff8787;
}

.example-ingredients {
    margin-bottom: 30px;
}

.example-ingredients h3 {
    text-align: center;
    color: #4ecdc4;
    margin-bottom: 15px;
}

.ingredient-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ingredient-tile {
    background-color: #e9f7f6;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ingredient-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#recipe-display {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#recipe-title {
    color: #ff6b6b;
    text-align: center;
}

#recipe-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

#cooking-time {
    text-align: center;
    font-weight: bold;
    color: #4ecdc4;
}

.hidden {
    display: none;
}

#ingredients-list, #instructions-list {
    padding-left: 20px;
}

#ingredients-list li, #instructions-list li {
    margin-bottom: 10px;
}

.ingredient-tile.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.ingredient-tile.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background-color: #d1efed;
}

.social-links {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #ff8787;
}

.social-links .x-icon svg,
.social-links .instagram-icon svg {
    width: 60%;
    height: 60%;
    fill: #000; /* Black color for both logos */
}

.social-links a:hover .x-icon svg,
.social-links a:hover .instagram-icon svg {
    fill: #fff; /* White color on hover for both logos */
}

@media (max-width: 600px) {
    .social-links {
        bottom: 10px;
        right: 10px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

.try-another-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 0;
    padding: 12px 20px;
    font-size: 16px;
    background-color: #4ecdc4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.try-another-btn:hover {
    background-color: #45b7ae;
    transform: translateY(-2px);
}

.refresh-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.bmc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FF813F;
    color: #ffffff;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

.bmc-button img {
    width: 20px;
    margin-right: 8px;
}

.bmc-button span {
    margin-left: 3px;
}

.bmc-button:hover {
    background-color: #FF9C5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.bmc-button.animate {
    animation: pulse 1s ease-in-out;
}

@media (max-width: 600px) {
    .bmc-button {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .bmc-button img {
        width: 16px;
    }
}

.ph-floating-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: block;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.ph-floating-badge:hover {
    transform: scale(0.85) translateY(-2px);
}

@media (max-width: 600px) {
    .ph-floating-badge {
        bottom: 10px;
        left: 10px;
        transform: scale(0.7);
    }
    
    .ph-floating-badge:hover {
        transform: scale(0.75) translateY(-2px);
    }
}

.producthunt-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.5rem auto 1.5rem;
}

.producthunt-badge {
    display: inline-block;
    transform: scale(0.8);
    margin: 0 auto;
}

.producthunt-badge img {
    display: block;
    margin: 0 auto;
}
