/* app/public/css/app.css */

/* Utility classes */
.w-full { width: 100%; }
.container { padding: 1rem; max-width: 1200px; margin: 0 auto; }
.text-red-500 { color: #ef4444; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.inline-block { display: inline-block; }
.max-w-xs { max-width: 20rem; }
.hidden { display: none; }
.cursor-pointer { cursor: pointer; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.object-cover { object-fit: cover; }
.text-gray-400 { color: #9ca3af; }

/* Logo styles */
.site-logo {
   height: 32px;
   margin-right: 16px;
}

.site-logo img {
   height: 100%;
   width: auto;
}



h1 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 35px;
   line-height: 35px;
   margin: 15px 0px;
}

h2 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 25px;
   margin: 0 0;
}

h3 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 20px;
   margin: 0 0;   
}

h4 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 15px;
   margin: 0 0;
}

h5 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 10px;
   margin: 0 0;
}

h6 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 8px;
   margin: 0 0;
}

a {
    color: rgb(244, 67, 54);
}

a:hover {
   color: rgb(244, 67, 54)!important;
}

/* Card styles */
.mdl-card {
   width: 100%;
}

.mdl-card__title {
   padding: 16px;
   min-height: 0;
}

.mdl-card__title-text {
   font-size: 1.2em;
   line-height: 1.3;
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 3;
   overflow: hidden;
   margin: 0;
}


.mdl-card__title-text a:hover {
   color: rgb(244, 67, 54)!important;
}


.mdl-card__media img {
   transition: transform 0.3s ease;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.mdl-card__media:hover img {
   transform: scale(1.05);
}

.mdl-card__supporting-text {
    color: rgba(0, 0, 0, .87);
}

/* Search form styles */
.search-container {
    display: flex;
    justify-content: flex-start;
    margin: 2rem 0;
    width: 100%;
}
.search-box {
   display: flex;
   align-items: center;
   width: 100%;
   max-width: 500px;
   gap: 16px;
}

.search-box .mdl-textfield {
   flex: 1;
   margin: 0;
}

.search-buttons {
   display: flex;
   gap: 8px;
   align-items: flex-end;
   margin-bottom: 20px;
}

/* Pagination styles */
.pagination-container-wrapper {
   display: flex;
   justify-content: center;
   margin-top: 2rem;
}

.pagination-container {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 16px;
}

.pagination-container .mdl-button[disabled] {
   opacity: 0.5;
   cursor: not-allowed;
}

/* Dialog styles */
.mdl-dialog {
   max-width: 80vw;
   padding: 1rem;
}

.mdl-dialog__content {
   padding: 1rem;
   text-align: center;
}

.mdl-dialog__content img {
   max-height: 80vh;
   max-width: 100%;
}

.mdl-dialog__actions {
   padding: 1rem;
   text-align: right;
}

/* Footer styles */
.mdl-mini-footer {
    padding: 32px 16px;
    background-color: rgb(244, 67, 54);
    color: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mdl-mini-footer__disclaimer {
    font-size: 0.9em;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
}

.mdl-mini-footer__link-list a {
   color: white;
   text-decoration: none;
   margin: 0;
   opacity: 0.9;
}

.mdl-mini-footer__right-section a {
   color: white;
}

.mdl-mini-footer__link-list a:hover {
   opacity: 1;
   text-decoration: underline;
}

.mdl-mini-footer__bottom-section {
   margin-top: 16px;
   text-align: center;
   font-size: 0.8em;
   opacity: 0.8;
}

/* Cookie banner styles */
#cookie-banner {
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 90%;
   max-width: 400px;
   background-color: white;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
   z-index: 10000;
   padding: 20px;
   text-align: center;
}

#cookie-banner .mdl-button {
   margin-top: 15px;
   margin-left: 8px;
}

#cookie-backdrop {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   z-index: 9999;
}

/* No results styles */
.no-results {
   text-align: center;
   padding: 48px 0;
   color: rgba(0, 0, 0, 0.54);
}

.no-results i {
   font-size: 48px;
   margin-bottom: 16px;
}

.no-results p {
   font-size: 1.2em;
}

/* SEO description styles */
.seo-description {
   margin: 2rem 0;
   font-size: 1.1em;
   line-height: 1.6;
   color: rgba(0, 0, 0, 0.7);
}

.seo-description .mdl-card__supporting-text {
   padding: 24px;
}

/* Hover effects */
a:hover .mdl-card__title-text {
   color: rgb(244, 67, 54)!important;
}

a:hover .source-name {
   color: rgb(63,81,181) !important;
}

/* Input fixes */
.mdl-textfield {
   width: auto;
}
.mdl-textfield__input {
   width: auto;
   word-break: break-all;
}

.ingredient-search {
   display: flex;
   align-items: center;
   gap: 10px;
}

/* Stili per il contenuto delle ricette locali */
.recipe-content p {
    margin: 1em 0;
    font-size: 1em;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.87);
}

.recipe-content h1 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 35px;
   line-height: 35px;
   margin: 0 0;
}

.recipe-content h2 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 25px;
   margin: 0 0;
}

.recipe-content h3 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 20px;
   margin: 0 0;   
}

.recipe-content h4 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 15px;
   margin: 0 0;
}

.recipe-content h5 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 10px;
   margin: 0 0;
}

.recipe-content h6 {
   font-weight: 600;
   color: rgba(0, 0, 0, 0.87);
   font-size: 8px;
   margin: 0 0;
}


.recipe-content ul,
.recipe-content ol {
    line-height: 20px;
}

.recipe-content li {
   line-height: 20px;
}

.recipe-content a {
    color: rgb(63,81,181);
    text-decoration: underline;
}

.recipe-content a:hover {
    text-decoration: none;
}

.share-section {
    margin-bottom: inherit;
}


/* Rating Widget */
.rating-widget {
    margin: 20px 0;
    text-align: left;
}

.rating-widget .stars {
    display: inline-block;
}

.rating-widget .star {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 5px;
    user-select: none;
}

.rating-widget .star.selected {
    color: #FFD700;
}

.rating-widget .star.hover {
    color: #FFB700;
}


/* Responsive: nascondi gli elementi con classe mdl-layout--large-screen-only su schermi piccoli */
@media (max-width: 1024px) {
    .mdl-layout--large-screen-only {
        display: none !important;
    }
}
