@charset "utf-8";



/* Base styles */

@font-face {
  font-family: "funnel sans";
  src:
    url("../assets/FunnelSans-VariableFont_wght.ttf") format("truetype");
}


:root {
  --primary: #002a51;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #FDFEFE;
  --black: #040404;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px 2px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}


input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  background-color: var(--primary) !important;
  transition: background-color 9999s ease-in-out 0s; /* hack para "ignorar" override do browser */
  color: var(--black) !important;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "funnel sans";
  color: var(--gray-800);
  background-color: var(--white);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

}


a {
  text-decoration: none;
  color: inherit;
}


h1{
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 2.5rem;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Limita a 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  text-overflow: ellipsis;

}

h2{
  font-size: 1.2rem;
  line-height: 1.8rem;
  font-weight: 400;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Limita a 2 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 2;
  text-overflow: ellipsis;
}

h3{
  display: flex;
  align-items: center;
  gap:1rem;
  font-size: 0.875rem;
  line-height: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  text-align: left;
}

h4{
  font-size: 3rem;
  font-weight: 600;
  text-wrap: wrap;
  color: var(--primary);
  width: 50%;
  height: fit-content;
}


p {
  font-family: "funnel sans";
  font-size: 0.875rem;
  color: var(--black);
  margin-bottom: -0.5rem;
  line-height: 1.4rem;
  -webkit-line-clamp: 4;      /* Limita a 2 linhas */
  line-clamp: 4;
  text-overflow: ellipsis;

}


.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  overflow: hidden;
  pointer-events: all;
}

.intro-background {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color:rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);   
  z-index: 1;
  transform-origin: bottom;
  transition: backdrop-filter 0.4s ease, background-color 0.4s ease;
}


.intro-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  transition: opacity 0.5s ease;
  cursor: pointer;
text-align: center;

}

.intro-content h4 {
  font-size: 4em;
  text-align: left;
}


.intro-description {
  margin-top: 1rem;
  font-size: 1.5rem;
  width: 30rem;
  transition: opacity 0.6s ease;
  color: var(--primary);
  text-align: left;
}


.enter-button {
  padding:   0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--white) ;
  border: 1px solid var(--primary);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.875rem;
  margin-top: 2rem;
text-align: left;  
transition: background-color 0.2s, color 0.2s;
}

.enter-button:hover {
  background-color: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-200);
}

/* Ao entrar */

.intro-screen.hovered .intro-background {
  transform: scaleY(0.85);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.8s ease, opacity 0.6s ease;

}



.intro-screen.shrink .intro-background{
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.6s ease;
}


.intro-screen.shrink h4 {
opacity: 0;
transition: opacity 0.3s ease;

}

.intro-screen.shrink .intro-description,
.intro-screen.shrink .enter-button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}



/* Header styles */
.sidebar {
  width: 18rem;
  padding: 1.2rem;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
overflow: hidden;  
flex-direction: column;
position: fixed; /* stays in place */
left: 0;
height: 100vh;
  top: 0;
  z-index: 10;
  gap: 2rem;
  flex-shrink: 0;
}

.logo-section .logo-text {
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--black);
  line-height: 1.2;
}

.description {
  font-size: 1rem;
  color: var(--black);
  margin-top: 2rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.filters-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;

}

.sidebar .filter-box {
  width: 100%;
}

.sidebar .dropdown-toggle,
.sidebar .filter-search-input {
  width: 100%;
}

.sidebar-nav {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}




/* Main content */
.main {
  position: relative;
  margin-left:18rem; /* leave space for sidebar */
  background-color: var(--white);
  padding: 1.2rem;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  width: calc(100% - 280px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}


/* Filters */


.search-container {
  position: relative;
  flex: 1 1 200px;
}



.filter-box {
  position: relative;
  width: calc(33.333%); /* divide em 3 com gap compensado */


}

.dropdown-toggle {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  width: 100%;
  text-align: left;
  border-radius: 0.2rem;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s, color 0.2s;  
  box-shadow: var(--shadow-sm);
}

.dropdown-toggle:hover {
  background-color: var(--gray-300);
}

.dropdown-toggle.active {
  background-color: var(--gray-200);
  color: var(--black);

}

.dropdown-toggle.active:hover {
  background-color: var(--gray-300);
  color: var(--black);

}
.dropdown-toggle:active {
  background-color: inherit;
  color: inherit;

}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 2.5rem;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.2rem;
  padding: 0.8rem;
  z-index: 10;
  box-shadow: var(--shadow-md);
  overflow-y: auto;
  max-height: 200px;
}


.dropdown-menu.open {
  display: block;

}

.filters {
  margin-bottom: 2rem;
  position: relative;
}

.filter-toggle-button {
  position: relative;
  z-index: 20;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  max-width: 90vw;
  transition: all 0.2s;
  width: 80%;
  height: fit-content;
}

.filter-toggle-button:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}


.filter-container {
  position: absolute;
width: 58%;
top: 5rem;
  background-color: var(--white);
  color: var(--black);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-top: 0.5rem;
  border: solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  animation: fadeIn 0.2s ease-out;
}

.filter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-search {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}


.filter-search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.2rem;
  font-size: 0.875rem;
  color: var(--black);
  background-color: var(--white);
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);

}

.filter-search-input:hover{
  background-color: var(--gray-100);
}

.filter-search-input:focus {
  outline: none;
  border-color: var(--gray-400);
  background-color: var(--white);
  color: var(--black);

}

.filter-search-input::placeholder {
  color: var(--black);
  opacity: 1; /* garante que fica 100% visível */
}

.filter-search-input:not(:placeholder-shown):not(:focus) {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--gray-400);
}




.clear-search-button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1rem;
  cursor: pointer;
  color: var(--black);
flex-wrap: nowrap;
min-width:auto;
}



.clear-search-button:hover {
  color: var(--gray-600);
}


.resource-total-count {
  font-size: 0.85rem;
  color: var(--black);
  line-height: 1.4;
  text-align: right;
}


.filter-checkbox {
  display: none;
}

.filter-label {
  padding: 0.8rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  border: solid var(--gray-200);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--black);
  text-transform: capitalize;
}



.active-filter-tag:hover {
  background-color: var(--gray-300);
  color: var(--black);

}


.active-filter-tag {
  display: flex;
  align-items: center;
  background-color: var(--gray-200);
  color: var(--black);
  border-radius: var(--border-radius);
  text-transform: capitalize;
}


/* Manter 2rem de border-radius nos filtros de categoria */

.filter-label:hover {
  background-color:var(--gray-300);
  color: var(--black);
}


.filter-checkbox:checked + .filter-label {
  background-color: var(--gray-300);
  color: var(--black);
}

.filter-all {
  background-color: var(--gray-200);
  color: var(--black);
}




/* Resource Grid */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 3fr));
  gap:1rem 1rem;
}


@media (min-width: 1024px) {
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  width: auto;
  cursor: pointer;
  justify-content: space-between;
}

.resource-card:hover {
  transform: translateY(-4px);
}


.modal-buttons-card {
  position: relative;
  display:flex;
justify-content: flex-end;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;

}


.resource-tags-on-hover {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.resource-image:hover .resource-tags-on-hover {
  opacity: 1;
  transform: translateY(0);
}


.resource-assets-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
}


.resource-asset-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--black);
  color: white;
  border-radius: 9999px;
  text-decoration: none;
}

.external-link-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-detail-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.resource-details {
  padding: 0.8rem 0rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
  overflow: hidden;
}

.image-wrapper {
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.12));
}

.resource-image {
  position: relative;
  height: 15rem;
  clip-path: url(#folder-shape);
  transition: filter 0.3s ease;

}

.image-blur-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  height: auto;
  width: auto;
  background-position: center;
  transition: filter 0.3s ease;
  z-index: 1;
}


.resource-image:hover .image-blur-layer {
  filter: blur(3px);
}


.resource-title.hovered {
  color: rgba(0, 0, 0, 0.127);
  transition: color 0.3s ease;
}


.resource-detail-meta {
  font-size: 1rem;
  color: var(--gray-500);
  white-space: wrap;
  -webkit-line-clamp: 2;      /* Limita a 2 linhas */
  line-clamp: 2;
}
.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;

}



.resource-detail-assets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-asset {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}


.resource-tag {
  padding: 0.8rem;
  font-size: 0.875rem;
  text-transform: capitalize;
  color: var(--black);
  border-radius: var(--border-radius);
  background-color: var(--gray-100);

}
.resource-tags-on-hover .resource-tag {
  background-color:  rgba(255, 255, 255, 0.586);

}

/* Footer */
footer {
  display: flex;
  position: relative;
  justify-content: space-between;
  background-color: var(--white);
padding-top: 2rem;
padding-bottom: 0.5rem;
text-align: right;
gap: 3rem;
}


/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
  width:auto;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-description {
  color: var(--gray-500);
}

/* Modal */
#resource-detail-modal {
  display: none;
  align-items: bottom;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);           /* aplica o desfoque */
  -webkit-backdrop-filter: blur(8px);
}

#resource-detail-modal.is-open {
  display: flex;
}

#modal-body {
  width:50vw;
 max-width: 50vw;
  padding: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;

}


.modal.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade-in 0.2s ease-in-out;
}

.modal-top {
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 0;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  transition: bottom 0.3s ease;
}


.modal-asset {  
  background-color: var(--white);
  height: 50vh;
  width: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0.1rem;
}

.modal-top video {
  display: block;
  position: relative;
}

.modal-buttons {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  justify-content:space-between;
  gap: 0.5rem;
}

.modal-bottom {
  background-color:var(--white);
  color:var(--black);
  padding: 1rem;
  padding-bottom: 2rem;
  box-shadow:
  0 4px 6px -2px rgba(0, 0, 0, 0.1),   /* bottom */
  -4px 0 6px -2px rgba(0, 0, 0, 0.1),  /* left */
  4px 0 6px -2px rgba(0, 0, 0, 0.1);   /* right */
  display: flex;
  flex-direction: column;
justify-content: space-between;  
min-height: 300px;
z-index: 2;
}

.modal-body {
  transition: transform 1s ease;
}

/* .modal-body.move-down {
  transform: translateY(300px); /* ajusta a distância conforme quiseres */

.modal-detail-one {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-detail-two {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.resource-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


 
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--white);
  border-radius: 999px;
  color: var(--black);
  border: 0.08rem solid var(--gray-200);
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: var(--shadow-md);
  transition: transform 1s ease;

}

.button:hover {
  background-color: var(--primary);
  color: var(--white);
}

.button.icon-button {
  padding: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  justify-content: center;
}

.icon-button.only-icon {
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  justify-content: center;
}

.icon-button.only-icon .button-label {
  display: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

.expand-on-hover {
  transition: transform 1s ease;
}

.button.icon-button.expand-on-hover {
  background-color: var(--primary);
  color: var(--white);
}


.button-label{
  padding-right: 0.5rem;
  padding-left: 1rem;
  font-size: 0.875rem;

}
.expand-on-hover .button-label {
  display: none;
  white-space: nowrap;
  transition: transform 1s ease;
  overflow: hidden;
  width: 0;
}

.expand-on-hover:hover {
  width: auto;
  transition: transform 0.6s ease;
  border-radius: 999px;
}

.expand-on-hover.icon{
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  justify-content: center;
}

.expand-on-hover:hover .button-label {
display: block;  
width: auto;
transition: transform 0.6s ease;

}

.modal-nav-button {
  position: absolute;
  bottom: 1rem;
  z-index: 10;
  transition: background-color 0.2s;
}

.modal-nav-button.left-button {
  left: 1rem;
}

.modal-nav-button.right-button {
  right: 1rem;
}
.close-button {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  background-color: var(--white);
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--border-radius-lg);
  border: 0.08rem solid var(--gray-200);
  cursor: pointer;
  transition: background-color 0.2s;
}

.close-button:hover {
  background-color: var(--primary);
  color: var(--white);
}

.resource-data {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}



.resource-detail-description {
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  -webkit-line-clamp: 4;      /* Limita a 2 linhas */
  line-clamp: 4;
overflow-y: scroll;
}

/* Modal Submission - reusing dimensions from modal */
.modal.modal-submission {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}



.modal-submission.is-open {
  display: flex;
}

.modal-submission-header{
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  align-items: center;
}

.submission-body {
  width: 450px;
  max-height: 90vh;
  background-color: var(--white);
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}


.submission-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

textarea.filter-search-input{
  font-family: "funnel sans";
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  resize: none; /* impede redimensionamento manual */
  height: 8rem; /* altura aumentada para ler melhor */
  box-sizing: border-box;
  background-color: var(--white);
  color: var(--black);
}

#submission-file {
  display: none;
}

/* Estilo do botão simulado */
.fake-file-upload {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-200);
  border-radius: 2rem;
  cursor: pointer;
  font-family: "funnel sans";
  font-size: 0.875rem;
  height:fit-content;  
  width: fit-content;
  box-sizing: border-box;
  text-align: left;
}

.fake-file-upload:hover{
  background-color: var(--primary);
  color: var(--white);
  transition: background-color 0.2s, color 0.2s;  

}

/* Estilo do texto que mostra o nome do ficheiro */
#file-name-display {
  display: block;
  font-family: "funnel sans";
  font-size: 0.875rem;
  color: var(--black);
}


.submission-inputs{
  display: flex;
  gap: 0.75rem;
}

.submission-input {
  width: 100%;
  font-size: 0.875rem;
  border-radius: 2rem;
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  background-color: var(--white);
  color: var(--black);
  resize: none;
}

.submission-input:focus {
  outline: none;
  border-color: var(--gray-400);
  background-color: var(--black);
  color: var(--white);
}

.submission-input:not(:placeholder-shown):not(:focus) {
  background-color: var(--black);
  color: var(--white);
}


.submission-form .button-primary {
  align-self: flex-end;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: var(--white);
}

.submission-form .button-primary:hover {
  background-color: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-200);

}

.custom-file-upload{
  display: flex;
 gap: 1rem;
 align-items: center;
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.2rem;
}

.remove-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.clear-filters {
  position: relative;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  color: var(--white);
  border-radius: 999px;
  cursor: pointer;
  justify-content: space-between;
  font-size: 0.875rem;
  transition: background-color 0.2s, color 0.2s;  
  align-items: center;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-right: 1rem;
}

.clear-filters:hover{
  background-color: var(--gray-100);
  color: var(--black);
  border: 1px solid var(--gray-200);
}

/* Share button */
.share-button {
  position: absolute;
  top: 8px;
  right: 32px;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.share-menu {
  position: absolute;
  top: 40px;
  right: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 0.5rem;
  z-index: 10;
}

.share-menu a,
.share-menu button {
  display: block;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  color: #1f2937;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.share-menu a:hover,
.share-menu button:hover {
  background-color: #f3f4f6;
}




.mobile-filter-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    box-shadow: var(--shadow-lg);
    transition: bottom 0.3s ease;
    z-index: 999;
    padding: 1rem;
    overflow: auto;
  }

  .mobile-filter-sheet.open {
    bottom: 0;
  }


.filter-fab {
display: none;
}

.submit-icon{
  display: none;
}

.mobile-filters-header{
  display: none;
}


.resource-tags-on-mobile{
  display: none;
}


@media (max-width:1000px) {
  .resource-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 3fr));
    }

  .mobile-filters-header{
    display: none;
  }

  #modal-body {
    width: 95vw;
    max-width: 70vw;
    padding: 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .modal-buttons {
    top: 1rem;
  }

  .modal-bottom{
    padding-bottom: 1rem;
  }
  
}



@media (max-width: 640px) {

  .filter-fab {
    position: sticky;
    display: flex;
    flex-direction: row;
    z-index: 1000;
    padding: 0.2rem;
    background-color: var(--white);
    color: var(--black);
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    width: fit-content;
    text-align: left;
    align-items: center;

  }


.filter-fab.opening {
  background-color: var(--gray-300);
  color: var(--black);

}

  .filter-fab.active {
    background-color: var(--gray-300);
    color: var(--black);
  }


  .filter-fab.active .filter-badge {
    color: var(--black);
  }


  .filter-badge {
    position: relative;
    font-size: 1rem;
    border-radius: 999px;
padding-left: 0.5rem;
    color: var(--black);

  }

  .sidebar {
    width: 100%;
    display: flex;
  overflow: scroll;  
  flex-direction: row;
  position: fixed; /* stays in place */
  gap: 2rem;
  padding-bottom: 2rem;
  left: 0;
  height:fit-content;
  justify-content: space-between;
  box-shadow: none;
  height: fit-content;
  }

.sidebar-nav{
display: flex;
flex-direction: row;
align-items: center;
height: fit-content;
}

  .description {
   display: none;
  }
  
  .filters-vertical {
    display: none;
  }

  .mobile-filters-header{
    display: flex;
    position: fixed;
    top: 7rem;
    height:3rem;
    justify-content: space-between;
padding: 1rem;
padding-top: 0rem;
left: 0;
right: 0;
    z-index: 900;
    background-color: var(--white);
    align-items: center;
  }


  .resource-tags-on-mobile{
    position: relative;
    display: flex;
      flex-direction: row;
      overflow-x: scroll;
      overflow-y: hidden;
      margin-bottom: 1rem;
      margin-right: 1rem;
      gap: 0.4rem;
      transform: translateY(5px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      z-index: 2;
  }

  .resource-detail-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    gap: 0.5rem;
    min-height: fit-content;
  }

  .resource-detail-tags .resource-tag{
    padding: 0.8rem;
    font-size: 0.875rem;
    text-transform: capitalize;
    color: var(--black);
    border-radius: var(--border-radius);
    background-color: var(--gray-100);
    text-wrap: nowrap;
    text-overflow: ellipsis;

  }

  .resource-tags-on-mobile .resource-tag{
    padding: 0.8rem;
    font-size: 0.875rem;
    text-transform: capitalize;
    color: var(--black);
    border-radius: var(--border-radius);
    background-color: var(--gray-100);
    text-wrap: nowrap;
    text-overflow: ellipsis;
  }

  .resource-details {
    padding: 0rem 1rem;
  }

  h4{
    font-size: 1.2rem;
  }

  .intro-content h4 {
    font-size: 2em;
    text-align: left;
  }

.logo-section{
  height: 100%;
}

.submit-icon{
  display: block;
  width: 20px;
}

.button-label-submit{
  display: none;
}



  .mobile-filter-sheet {
  display: flex;
  flex-direction: column;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  box-shadow:
  0 -4px 6px rgba(0, 0, 0, 0.1),
  -4px 0 6px rgba(0, 0, 0, 0.1),
  4px 0 6px rgba(0, 0, 0, 0.1);
  transition: bottom 0.3s ease;
  z-index: 999;
  padding-left: 1rem;
  padding-right: 1rem;
padding-top: 0rem;
  overflow-y: scroll;
  overflow-x: hidden;
max-height: 60%;
  gap: 1rem;
}

.mobile-filter-sheet.open {
  bottom: 0;
}


.sheet-header{
  display: flex;
  position: sticky;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding-top: 2rem;
  z-index: 999;
  background-color: var(--white);
  height: fit-content;
  top: 0rem;
  padding-bottom: 0.5rem;


}

footer {
gap: 1rem;
width: 100%;
}

.sheet-footer{
display: flex;
flex-direction: row;
position: sticky;
bottom: -1rem;
width: 100%;
height: fit-content;
padding: 1rem;
right: 0;
z-index: 999;
align-items: center;
justify-content: flex-end;
background-color: var(--white);
}

.sheet-content #mobile-filter-placeholder{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

#mobile-filter-placeholder .filter-search {
  margin-bottom: 0;
}
  
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    height: fit-content;
  }


  .enter-button{
    margin-top: 1rem;
    border: 0.08rem solid var(--gray-200);
  }

  .sidebar-nav {
    margin-top: 0rem;
  }


  .sidebar-nav button{
    height: fit-content;
    padding: 0.5rem;
    margin-top: 0rem;
  }
  .filter-toggle-button {
    position: absolute;
    z-index: 20;
    top: 4.5rem;
    width: 96%;
  }
  
  .filter-container{
    top: 10rem;
    width: 94%;
  }

  .filter-label{
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 0.08rem solid var(--gray-200);
  }

  .active-filters{
    gap: 0.8rem 0.5rem;
  }

  .filter-search-input {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .resource-card {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    max-width: 100%;
     min-height: 18vh;
     height: 18vh;
     box-shadow: var(--shadow-md);


  }


  .resource-image {
    height:18vh;
    width: 40vw;
    background-color: var(--white);
    
  }

  .image-wrapper{
    filter: drop-shadow(var (--shadow-lg));
  }

  .image-blur-layer{
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-md);

  
  
  }

  .resource-image:hover .resource-tags-on-hover {
    opacity: 0;
  }


.resource-image:hover .image-blur-layer {
  filter: blur(0);
}


.resource-title.hovered {
  color: rgb(0, 0, 0);
}

.modal-buttons-card {
  top: 0.8rem;
}

  

  h1{
line-height: 1.8rem;
    font-size: 1.2rem;
    -webkit-line-clamp: 2;      /* Limita a 2 linhas */
    line-clamp: 2;

  }
  
  h2{
    -webkit-line-clamp: 2;      /* Limita a 2 linhas */
    line-clamp: 2;
  }


 
.button {
  font-size: 1rem;
}
  



  
.modal-asset {  
  height: 50vh;
  width: 100%;
  background-size: contain;
  border: 1rem solid var(--white);

}



.modal-buttons {
  top: 1rem;
}

.expand-on-hover .button-label {
  display: block;
  overflow: visible;
  width: fit-content;
}

.button.icon-button.expand-on-hover {
width: fit-content;
}


#modal-body {
 width: 95vw;
max-width: 95vw;

}


  .main{
    margin-left: 0rem;
    margin-top: 9rem;
    width: 100%;
    height: 80vh;
  }


.clear-filters {
    position: relative;
    box-shadow: var(--shadow-md);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background-color: var(--primary);
    color: var(--white);
  }


  .submission-body {
    width: 90vw;
  
  }

  .resource-tags-on-hover{
    opacity: 0;
  }
  

.intro-description {
  font-size: 1rem;
  width: 60vw;
  margin-bottom: 0.5rem;
}



.fake-file-upload {
  padding: 0.8rem 1rem;
  font-size:1rem;
}


textarea.filter-search-input{
  font-size: 1rem;
}

#mobile-category-filters{
  max-height: 300px;
  overflow-y: scroll;
}

#mobile-type-filters{
  max-height: 300px;
  overflow-y: scroll;
}
}