/*
style.css
Style for miscellaneous items of child theme
*/

:root {
    --primary-color: #6e3715;
    --primary-light: #d8bda6;
    --bg-section-color: #f9f9f9;
    --bg-card-color: #fff;
    --border-card-color: #ddd;
    --text-color: #3a4458;
    --accent-color: #6e3715;
    --grey-color: #ddd;
}

.wp-block-cover {
    margin-bottom: 0 !important;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 0 0 10%;
    margin-bottom: 1rem;
    list-style: none;
    background-color: var(--bg-section-color);
    border-radius: 0.25rem;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

h1.entry-title {
    margin-right: 0.75rem;
    font-size:3.5rem !important;
}

h2 {
    font-size:2.5rem;
}

h3 {
    font-size:1.5rem;
}

h4 {
    font-size:1.2rem;
}
	
.icon-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 0.3rem;
}

.icon-container img {
    width: 2.5rem;
    height: auto;
}
.icon-container[title] {
    position: relative;
}
.icon-container[title]:hover::after {
    content: attr(title); 
    position: absolute;
    bottom: -30px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #000; 
    color: #fff; 
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.875rem;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

.icon-container[title]::after {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
}


h1 {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 70px;
}

p {
    text-align: justify;
}

.content-cpt {
    margin: 0 10%;
}

.cpt-description { 
    margin-bottom: 2rem;
}

/* BUTTON */
.button {
    border-radius: 0.5rem;
}
/* END BUTTON */

.ingredient-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ingredient-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Flip wrapper */
.ingredient-flip-box {
    width: 120px;
    height: 120px;
    perspective: 1000px;
}

.ingredient-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.ingredient-flip-box:hover .ingredient-flip-inner {
    transform: rotateY(180deg);
}

/* Recto */
.ingredient-flip-front,
.ingredient-flip-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
}

/* Verso  */
.ingredient-flip-back {
    transform: rotateY(180deg);
}

.ingredient-label {
    font-size: 14px;
    font-weight: bold;
}

.ingredient-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.ingredient-value {
    font-size: 18px;
    font-weight: bold;
}

.ingredient-unit {
    font-size: 14px;
    font-weight: bold;
    margin-top: 2px;
}

.ingredient-calories { 
background-color: #f9e0e0; 
color: #b22222; 
}

.ingredient-carbon_footprint {
background-color: #d4edda; 
color: #155724; 
}
.ingredient-consumption_per_capita,
.ingredient-glycemic_index,
.ingredient-average_ph { 
    background-color: #ddd;
    color: #696969; 
}
