/* easyplate Generator Styles */

.easyplate-generator {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.easyplate-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.easyplate-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.easyplate-form-group {
    display: flex;
    flex-direction: column;
}

.easyplate-form-group.full-width {
    grid-column: 1 / -1;
}

.easyplate-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
    font-size: 15px;
}

.easyplate-form-group label .icon {
    font-size: 20px;
}

.easyplate-form-group input[type="text"],
.easyplate-form-group input[type="number"],
.easyplate-form-group select,
.easyplate-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.easyplate-form-group input:focus,
.easyplate-form-group select:focus,
.easyplate-form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.easyplate-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.easyplate-form-group small {
    color: #636e72;
    font-size: 13px;
    margin-top: 6px;
}

/* Checkbox Group */
.easyplate-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.checkbox-label:hover {
    background: #ffffff;
    border-color: #ff6b35;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #ff6b35;
    font-weight: 600;
}

/* Form Actions */
.easyplate-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.easyplate-btn {
    padding: 16px 48px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.easyplate-btn-primary {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.easyplate-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.easyplate-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.easyplate-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Recipe Result */
.easyplate-result {
    margin-top: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.easyplate-recipe-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.easyplate-recipe-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.easyplate-recipe-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff6b35, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.easyplate-recipe-description {
    font-size: 18px;
    color: #636e72;
    line-height: 1.7;
    margin-bottom: 20px;
}

.easyplate-recipe-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.easyplate-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    font-weight: 600;
    color: #2d3436;
}

.easyplate-meta-item span:first-child {
    font-size: 20px;
}

.easyplate-recipe-section {
    margin: 30px 0;
}

.easyplate-recipe-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.easyplate-recipe-section h3::before {
    content: '';
    width: 5px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b35, #4ecdc4);
    border-radius: 3px;
}

.easyplate-ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
}

.easyplate-ingredients-list li {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.easyplate-ingredients-list li::before {
    content: '✓';
    color: #00b894;
    font-weight: bold;
    font-size: 18px;
}

.easyplate-instructions-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.easyplate-instructions-list li {
    padding: 20px 20px 20px 70px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    position: relative;
    counter-increment: step-counter;
    line-height: 1.7;
}

.easyplate-instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.easyplate-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.easyplate-nutrition-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.easyplate-nutrition-item .value {
    font-size: 28px;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.easyplate-nutrition-item .label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.easyplate-tips-list {
    list-style: none;
    padding: 0;
}

.easyplate-tips-list li {
    padding: 16px 20px 16px 50px;
    margin-bottom: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    position: relative;
}

.easyplate-tips-list li::before {
    content: '💡';
    position: absolute;
    left: 18px;
    font-size: 20px;
}

.easyplate-recipe-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.easyplate-btn-secondary {
    background: #4ecdc4;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.easyplate-btn-secondary:hover {
    background: #45b8b0;
    transform: translateY(-2px);
}

.easyplate-btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.easyplate-btn-outline:hover {
    background: #ff6b35;
    color: white;
}

.easyplate-error {
    background: #ffe0e0;
    color: #d63031;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #d63031;
    margin-top: 20px;
    font-weight: 500;
}

.easyplate-success {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-top: 15px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .easyplate-form {
        padding: 30px 20px;
    }

    .easyplate-form-grid {
        grid-template-columns: 1fr;
    }

    .easyplate-recipe-card {
        padding: 30px 20px;
    }

    .easyplate-recipe-header h2 {
        font-size: 28px;
    }

    .easyplate-recipe-meta {
        gap: 15px;
    }

    .easyplate-nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .easyplate-ingredients-list {
        grid-template-columns: 1fr;
    }

    .easyplate-btn {
        padding: 14px 32px;
        font-size: 16px;
    }
}
