/* Minimal styling for calendar */
:root {
  --ccc-cap: #202121;
  --ccc-recuperacio-punts: #c12722;
  --ccc-recuperacio-permis: #757575;
  --ccc-default: #a1a1a1;
}



.ccc-container {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  height: 100%;
  font-family: inherit !important;
}

.ccc-left, .ccc-right {
  max-width: 50%;
  width: 50%;
  height: auto;
}

/* Columna Left */
.ccc-left {
  display: flex;
  flex-direction: column;
}

.ccc-left .heading {
  font-size: var(--wp--preset--font-size--h-5);
}

/* .ccc-list {
  overflow-y: scroll;
  height: 400px;
} */


/* Card */
.ccc-curso { 
  margin-bottom:12px;  
  background-color: #f8f8f8;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ccc-curso .meta {
  display: flex;
  justify-content: space-between;
}

.ccc-curso .tipo {
  border: 1px solid #101010;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 20px;
}

.ccc-boton {
    width: fit-content;
}





/* Columna Right */
.ccc-right { 
  border: 1px solid #ff00008f; 
  padding: 20px; 
  border-radius: 16px; 
  max-height: fit-content;
}

.ccc-calendar { 
  border:1px solid #eee; 
  padding:8px; 
  border-radius:6px; 
  background:#fff; 
}

.ccc-right .ccc-calendar-controls {
  display: flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px
}

.ccc-container .ccc-calendar-controls button {
  padding: 4px 18px;
  border: none;
  cursor: pointer;
  background-color: #efefef;
  border-radius: 4px;
}

.ccc-container .ccc-calendar-controls button:hover {
  background-color: #e2e2e2;
}

#ccc-month-title {
  font-size: var(--wp--preset--font-size--h-5);
}

.ccc-right .ccc-weekdays {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  font-size: var(--wp--preset--font-size--h-5);
}

.ccc-right #ccc-days-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
}

.ccc-day {
  position: relative;
  width: auto; 
  height: 36px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  border: none; 
  background: #f8f8f8; 
  cursor: pointer;
  font-size: 14px; 
  border-radius: 4px;
  font-size: var(--wp--preset--font-size--h-6);
  color: var(--color-textMain);
}

.ccc-day.empty { 
  background: transparent; 
  border: none; 
  cursor: default; 
  pointer-events: none;
}

.ccc-day-today { 
  border: 2px solid #ff00008f !important; 
  color: var(--color-accent);
}

.ccc-day:hover:not(.empty) { 
  background-color: #ff00001f; 
}

.ccc-day-with-event { 
  /* background-color: #ff00001f;  */
  font-weight: bold; 
  color: var(--color-accent);
}


.ccc-day.is-active, .ccc-day.ccc-day-with-event.is-active {
  font-weight: bold;
  border: 2px solid var(--color-accent);
  background-color: #ff00001f;
}



/* Filtros */
.ccc-filtros-wrapper {
    display: flex;
    width: 100%;
    gap: var(--spacing-48);
}

.ccc-filtros, .ccc-filtro, .ccc-filtros-localizacion, .ccc-filtro-localizacion {
    margin-top: var(--spacing-8);
}

.ccc-filtros .ccc-filtro, .ccc-filtro-localizacion {
  border: 1px solid var(--color-accent-40);
  background: transparent;
  padding: 2px 8px;
  border-radius: 30px;
  font-family: inherit;
}

.ccc-filtros .ccc-filtro:hover, .ccc-filtro-localizacion:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.ccc-filtros .ccc-filtro.is-active, .ccc-filtro-localizacion.is-active {
  border-color: var(--color-accent-40);
  background-color: var(--color-accent);
  color: var(--color-white);
}



/* Dias del calendario */
.ccc-day-with-event {
  position: relative;
  display: flex;
  flex-direction: column;
}


/* Bolita base */
.ccc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ccc-default);
}

.ccc-events-wrapper {
  display: flex;
  gap: 3px;
  margin-top: 2px;
}


/* --- Colores por tipo --- */
/* Cards Resultados */
.ccc-curso { border-left: 4px solid var(--ccc-default);}

.ccc-tipo-cap, .ccc-tipo-cap .tipo { border-color: var(--ccc-cap); }
.ccc-tipo-recuperacion-de-permis, .ccc-tipo-recuperacion-de-permis .tipo { border-color: var(--ccc-recuperacio-permis); }
.ccc-tipo-recuperacio-de-punts, .ccc-tipo-recuperacio-de-punts .tipo { border-color: var(--ccc-recuperacio-punts); }

/* Tag card */
.ccc-tipo-cap .tipo { color: var(--ccc-cap); }
.ccc-tipo-recuperacion-de-permis .tipo { color: var(--ccc-recuperacio-permis); }
.ccc-tipo-recuperacio-de-punts .tipo { color: var(--ccc-recuperacio-punts); }

/* Dots Calendario */
.ccc-dot-cap { background: var(--ccc-cap); }
.ccc-dot-recuperacion-de-permis { background: var(--ccc-recuperacio-permis); }
.ccc-dot-recuperacio-de-punts { background: var(--ccc-recuperacio-punts);}






/* Professionals Page */
.page-template-page-professionals .ccc-right {
  background-color: #fff;
  border-color: #a69971;
}

.page-template-page-professionals .ccc-container {
  color: #101010;
}

.page-template-page-professionals .ccc-curso {
  background-color: #212121;
}

.page-template-page-professionals .ccc-filtros .ccc-filtro, .page-template-page-professionals .ccc-boton {
  color: var(--color-white);
}



/* ----------------------------------------------------------------------------------------------------
* Responsive
* ---------------------------------------------------------------------------------------------------- */
@media only screen and (max-width: 768px) {
  .ccc-container { flex-direction: column-reverse; }
  .ccc-left, .ccc-right { max-width: 100%; width: 100%; }
}