/* Aude Recipe Generator - Frontend Styles 2026 */

/* Carte recette principale - Mobile First */
.recipe-card {
    width: 100%;
    max-width: 100%;
    border: none !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.recipe-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.recipe-card td {
    padding: 1rem !important;
    border: none !important;
    font-size: 0.95rem;
    vertical-align: middle;
}

.recipe-card tr:nth-child(even) {
    background: #f8f9fa;
}

.recipe-card strong {
    color: #667eea;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-card td:nth-child(2),
.recipe-card td:nth-child(4) {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

/* Tablette et + */
@media (min-width: 768px) {
    .recipe-card {
        max-width: 800px;
        margin: 2rem auto !important;
    }
    
    .recipe-card td {
        padding: 1.25rem !important;
        font-size: 1rem;
    }
    
    .recipe-card td:nth-child(2),
    .recipe-card td:nth-child(4) {
        font-size: 1.2rem;
    }
}

/* Titres recettes */
article h1 {
    font-size: 2rem;
    line-height: 1.2;
    color: #1a202c;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

article h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 2rem 0 1rem;
    font-weight: 600;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

@media (min-width: 768px) {
    article h1 {
        font-size: 2.5rem;
    }
    
    article h2 {
        font-size: 1.75rem;
    }
}

/* Listes améliorées */
article ol,
article ul {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

article ol li,
article ul li {
    margin: 1rem 0;
    line-height: 1.7;
    color: #4a5568;
}

article ol li {
    padding-left: 0.5rem;
}

article ol li strong {
    color: #667eea;
    font-weight: 600;
}

/* Paragraphes */
article p {
    line-height: 1.8;
    color: #4a5568;
    margin: 1rem 0;
    font-size: 1.05rem;
}

article p em {
    color: #718096;
    font-style: italic;
}

/* Image à la une */
.wp-post-image {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Responsive images */
@media (max-width: 767px) {
    .wp-post-image {
        border-radius: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
}

/* Espacement mobile optimisé */
@media (max-width: 767px) {
    article {
        padding: 0 1rem;
    }
    
    article h1,
    article h2 {
        padding: 0 0.5rem;
    }
}
