/* Base styles */
:root {
    --primary-color: #93bf20;
    --secondary-color: #ff7801;
    --text-primary: #434955;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-features: #f8fdf4;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-lg: 1rem;
    --border-radius-sm: 0.5rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Product suggestion container */
#product-suggestion {
    margin: var(--spacing-xl) 0;
    width: 100%;
}

/* Card container */
.module-suggestion {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.module-suggestion:hover {
    transform: translateY(-4px);
}

/* Header section */
.module-header {
    position: relative;
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom right, var(--bg-features), #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.module-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    padding: 0;
}

.module-header h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
    padding: var(--spacing-lg);
    text-align: center;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content section */
.module-content {
    padding: var(--spacing-lg);
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-primary);
    font-family: 'Inter', sans-serif;
}

.module-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg);
}

/* Features list */
.features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    flex-grow: 1;
}

.features li {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 2.5rem;
    color: var(--text-primary);
    position: relative;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    line-height: 1.5;
}

.features li:last-child {
    border-bottom: none;
    margin-bottom: var(--spacing-md);
}

.features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Call to action button */
.learn-more {
    display: inline-block;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
}

.learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 191, 32, 0.3);
    filter: brightness(1.1);
}

/* Loading and error states */
.suggestion-loading,
.suggestion-error {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
}

.suggestion-error {
    color: #dc2626;
    background-color: #fee2e2;
    border-color: #dc2626;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .module-header {
        aspect-ratio: 4/3;
    }

    .module-header h3 {
        font-size: 1.25rem;
        padding: var(--spacing-md);
    }

    .module-content {
        padding: var(--spacing-md);
    }

    .module-content p {
        font-size: 1rem;
    }

    .features li {
        font-size: 0.95rem;
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 2rem;
    }

    .learn-more {
        font-size: 1rem;
        padding: var(--spacing-md);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .module-header h3 {
        font-size: 1.25rem;
    }

    .module-content p {
        font-size: 1rem;
    }
}