:root {
    --primary-color: #ff8c00;
    --primary-dark: #ff7400;
    --primary-light: #FFD84D;
    --background-color: #FFD84D;
    --text-color: #2B3A67;
    --text-light: #536088;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --rounded-sm: 4px;
    --rounded-md: 8px;
    --rounded-lg: 16px;
}

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

body { 
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.header-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subtitle-text {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 16px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: var(--rounded-md);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.search-button,
.find-stores-button {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--rounded-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-button:hover,
.find-stores-button:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.search-tips {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* Recipe Cards */
.recipe-card {
    background-color: var(--white);
    border-radius: var(--rounded-lg);
    padding: 24px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.recipe-card:hover {
    background-color: #fff9e6;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.recipe-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.recipe-card p {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Recipe Details */
.recipe-section {
    background-color: var(--white);
    border-radius: var(--rounded-lg);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.recipe-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

.recipe-details {
    margin-bottom: 32px;
}

.recipe-details h3 {
    margin: 24px 0 16px;
    color: var(--primary-color);
}

.recipe-details ul,
.recipe-details ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.recipe-details li {
    margin-bottom: 8px;
}

/* Store Section */
.store-search-section {
    margin: 32px 0;
}

.zip-search {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.zip-input {
    flex: 1;
    padding: 16px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: var(--rounded-md);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.zip-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Badges and Status */
.scraped-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--rounded-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.loading {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
}

/* Animated dots for loading messages */
.loading .dots {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}
.loading .dot {
    display: inline-block;
    font-weight: 700;
    margin: 0 1px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(-2px);
    animation: loading-dot 1s infinite;
}
.loading .dot:nth-child(1) { animation-delay: 0s; }
.loading .dot:nth-child(2) { animation-delay: 0.15s; }
.loading .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loading-dot {
    0%   { opacity: 0; transform: translateY(-4px); }
    40%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 0.3; transform: translateY(2px); }
    100% { opacity: 0; transform: translateY(4px); }
}

/* Pricing Section */
.pricing-section {
    margin-top: 32px;
}

.store-section {
    margin-top: 24px;
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input,
    .search-button {
        width: 100%;
    }

    .recipe-section {
        padding: 20px;
    }

    .zip-search {
        flex-direction: column;
    }
}

/* Recipe Card Enhanced Styles */
.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.recipe-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.recipe-ingredients {
    margin: 12px 0;
    padding: 8px 12px;
    background-color: var(--primary-light);
    border-radius: var(--rounded-sm);
}

.ingredients-label {
    color: var(--primary-color);
    font-weight: 500;
    margin-right: 8px;
}

.ingredients-list {
    color: var(--text-light);
}

.recipe-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Recipe Details Enhanced Styles */
.recipe-source {
    background-color: var(--primary-light);
    padding: 12px 16px;
    border-radius: var(--rounded-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-icon {
    font-size: 1.2rem;
}

.recipe-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--primary-light);
    border-radius: var(--rounded-sm);
}

.overview-icon {
    font-size: 1.2rem;
}

.overview-label {
    font-weight: 500;
    color: var(--primary-color);
}

.overview-value {
    color: var(--text-light);
}

.recipe-description,
.recipe-ingredients,
.recipe-instructions {
    margin-bottom: 32px;
}

.recipe-instructions ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.recipe-instructions li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

.step-number {
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.step-text {
    display: block;
    padding-top: 4px;
}

.no-results {
    text-align: center;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-sm);
}

.no-results h3 {
    color: var(--text-color);
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.recipe-card {
    animation: fadeIn 0.5s ease-out;
}

.recipe-section {
    animation: slideIn 0.5s ease-out;
}

.recipe-instructions li {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.recipe-instructions li:nth-child(1) { animation-delay: 0.1s; }
.recipe-instructions li:nth-child(2) { animation-delay: 0.2s; }
.recipe-instructions li:nth-child(3) { animation-delay: 0.3s; }
.recipe-instructions li:nth-child(4) { animation-delay: 0.4s; }
.recipe-instructions li:nth-child(5) { animation-delay: 0.5s; }