/* ==========================================================================
   Cosamirai Navigation Block Styles
   ========================================================================== */

   .cosamirai-navigation-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--c-light-stone);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}


.cosamirai-nav-content ul {
  border-radius: 10px;
  background: var(--c-light-stone);
}

.cosamirai-nav-content ul  {
  justify-content: initial;
  width: 100%;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  max-height: 66rem;
  gap: 10vh;
}

.cosamirai-nav-content ul > li.menu-align-right {
  margin-left: auto;
}

.cosamirai-nav-content ul > li {
  padding: 0;
  line-height: 1;
}

.cosamirai-nav-content ul > li a {
  padding: 0 var(--fluid-15);
  height: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
  position: relative;
  text-align: left;
  font-family: var(--wp--preset--font-family--pp-fragment-glare);
  font-size: var(--fs-flyout-navigation-text);
  color: var(--c-oak-text);
}

.cosamirai-nav-content ul > li a span:nth-child(2) {
  display: none;
}

.cosamirai-nav-content ul li:hover .caret {
  transform: rotate(0deg);
}

.cosamirai-navigation-block[aria-expanded="true"] {
    transform: translateY(0);   
    opacity: 1;
}

.cosamirai-nav-wrapper {
    width: 50%;
    max-width: 1200px;
    padding: 0rem 5rem;
    text-align: center;
    height: calc(100% - 12rem);
    margin-top: 8rem;
    margin-bottom: 4rem;
}

.cosamirai-nav-content,
.menu-main-menu-container {
    height: 100%;
}
.menu-main-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cosamirai-nav-responsive-lang-switcher {
    display:none;
}

.cosamirai-nav-projects {
     width: 50%;
     padding: 0rem 2rem;
     height: calc(100% - 12rem);
     margin-top: 8rem;
     margin-bottom: 4rem;
     display: flex;
     flex-direction: column;
     justify-content: center;
}

.cosamirai-nav-projects-items {
   width: 100%;
   height: auto;
   display: flex;
   flex-direction: column;
   gap: 3rem;
}

.cosamirai-nav-projects-item {
    width: 100%;
}

.cosamirai-nav-projects-item a {
    display:flex;
    flex-direction: column;
    height: 100%;
}

.cosamirai-nav-projects-item-image {
    width:100%;
    height: 100%;
    max-height: 28vh;
    overflow: hidden;
}

.cosamirai-nav-projects-item img {
    width:100%;
    height: 100%;
    object-fit: cover;
    transition:all ease 0.5s;
    object-position:50% 50%;
    transform-origin:center center;
    max-width:none;
}

.cosamirai-nav-projects-item:hover img {
    width:110%;
    height: 110%;
    margin-left:-2.5%;
    margin-top:-2.5%;
}

.cosamirai-nav-projects-title {
    font-size: var(--fs-40);
    font-family: var(--wp--preset--font-family--pp-fragment-glare);
    height: 6rem;
    color: var(--c-oak-text);
}

.cosamirai-nav-projects-item-title {
    font-size: var(--fs-26);
    font-family: var(--wp--preset--font-family--pp-fragment-glare);
    margin-top:1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cosamirai-nav-projects-item:hover svg {
    width: 2.2rem;
    height: auto;
    margin-left: 2.5rem;
}

.cosamirai-nav-projects-item-title svg {
    width: 2.2rem;
    height: auto;
    margin-left: 1.5rem;
    transition: margin-left ease 0.5s;
}

/* Backend Preview Styles */
.cosamirai-navigation-block-preview {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cosamirai-navigation-block-preview h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.preview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.preview-menu-section,
.preview-projects-section {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.preview-menu-section h5,
.preview-projects-section h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.preview-menu-name {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.preview-menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-menu-item {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #555;
}

.preview-menu-more {
    background: #ffeb3b;
    color: #f57f17;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.preview-no-menu {
    color: #d32f2f;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.preview-project {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.preview-project:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.preview-project-info {
    margin-bottom: 8px;
    font-size: 13px;
}

.preview-project-info strong {
    color: #333;
}

.preview-project-info span {
    font-weight: 500;
    margin-left: 5px;
}

.preview-missing {
    color: #ff9800 !important;
    font-style: italic;
}

.preview-project-image {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.preview-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-no-image {
    background: #fafafa;
    color: #999;
    text-align: center;
    padding: 25px 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    font-size: 12px;
}


@media (max-width: 1100px) {
    
    .cosamirai-nav-wrapper {
        padding: 0rem 2rem;
    }
}

/* Mobile responsive pour la preview */
@media (max-width: 600px) {
    .preview-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cosamirai-navigation-block-preview {
        max-width: 100%;
        padding: 15px;
    }
}

@media (max-height:750px) 
{
     .cosamirai-nav-projects-items {
        gap: 2rem;
    }
    
    .cosamirai-nav-projects-item-image {
        max-height: 22vh;
    }
}


@media (max-height:600px) 
{
    .cosamirai-nav-projects-items {
        gap: 1.5rem;
    }
    
    .cosamirai-nav-projects-item-image {
        max-height: 20vh;
    }
}

@media (max-height: 740px) and (max-width: 768px)
{
    #masthead .cosamirai-nav-wrapper {
        padding-top:0rem;
        padding-bottom:0rem;
    }
    #masthead .cosamirai-navigation-block {
        padding-top: 4rem;
    }
    #masthead .cosamirai-nav-content ul > li a,
    #masthead .cosamirai-nav-projects-item-title {
        font-size: var(--fs-24);
    }
}

@media (max-height: 640px) and (max-width: 768px)
{
    #masthead .cosamirai-navigation-block {
        padding-top: 4rem;
    }
    #masthead .cosamirai-nav-content ul > li a,
    #masthead .cosamirai-nav-projects-item-title {
        font-size: var(--fs-20);
    }
    #masthead .cosamirai-nav-projects-title {
        margin-bottom: 0.25rem;
    }
}

@media (max-width:1300px)
{
    .cosamirai-nav-content ul > li a {
        font-size:5.3rem;
    }
}

@media (max-width:1100px)
{
    .cosamirai-nav-content ul > li a {
        font-size:5rem;
    }
}

@media (max-width:900px)
{
    .cosamirai-nav-content ul > li a {
        font-size:4rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cosamirai-nav-wrapper {
        padding: 1rem;
    }
    
    .cosamirai-nav-content p {
        font-size: 1.25rem;
    }

    .cosamirai-navigation-block {
        flex-direction: column-reverse;
        height: auto;
        min-height: 100vh;
        padding-top: 6rem;
    }

    .cosamirai-nav-wrapper,
    .cosamirai-nav-projects {
        width:100%;
        height: auto;
        margin: 0;
    }

    .cosamirai-nav-projects-item-image {
        max-height:20vh
    }

    .cosamirai-nav-projects-title {
        font-size:var(--fs-18);
        height: auto;
        margin-bottom: 1rem;
    }

    .cosamirai-nav-projects-item-title {
        font-size:var(--fs-26);
        margin-top: 0.5rem;
    }

    .cosamirai-nav-projects-items {
        gap:1rem;
    }

    .cosamirai-nav-content ul {
        padding:0;
        gap: 1rem;
        margin-top: 1rem;
    }

    .cosamirai-nav-content ul > li a {
        font-size:var(--fs-28);
    }

    .cosamirai-nav-responsive-lang-switcher {
        display:block;
        margin-left: 2rem;
        margin-right: auto;
        margin-top: 1rem;
    }
}

/* Animation improvements */
@media (prefers-reduced-motion: reduce) {
    .cosamirai-navigation-block {
        transition: none;
    }
}
