@import url("./vars.css");

/* Sticky footer layout */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.tabs-bar {
  position: sticky;
  top: var(--header-offset, 88px);
  background: var(--bg-primary, rgba(11, 11, 11, 0.95));
  z-index: 60;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--text-primary, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(6px);
}
.tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tab {
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  transition: all 200ms ease;
  border: 0;
  outline: none;
}
.tab:hover,
.tab:focus {
  transform: translateY(2px);
  border: 2px solid var(--accent-primary, rgba(0, 255, 204, 0.12));
  box-shadow: 0 6px 9px var(--accent-primary);
}
.tab[aria-selected="true"] {
  border: 2px solid var(--accent-primary, rgba(0, 255, 204, 0.12));
  /*Making the selected tab more noticeable*/
  background-color: var(--text-primary, rgba(255, 255, 255, 0.04));
  color: var(--bg-primary);
}
.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
  flex-wrap: wrap;
  border-color: var(--accent-primary, rgba(0, 255, 204, 0.12));
}
.search-row input[type="search"],
.search-row input[type="text"] {
  flex: 1 1 320px;
  min-width: 220px;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--accent-primary, rgba(0, 255, 204, 0.12));
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  outline: none;
}
.search-row input[type="search"]::placeholder {
  color: var(--text-secondary);
}
.tag-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  border: 1px solid var(--accent-primary, rgba(0, 255, 204, 0.12));
  color: var(--text-secondary);
  transition:
    background 160ms ease,
    transform 160ms ease;
}
.tag:hover,
.tag:focus {
  background: var(--accent-primary, rgba(0, 255, 204, 0.04));
  transform: translateY(2px);
  color: var(--text-primary);
}

.cta-small {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}
.cta-small:hover,
.cta-small:focus {
  background: linear-gradient(
    90deg,
    var(--accent-primary, rgba(0, 255, 204, 0.06)),
    var(--accent-secondary, rgba(125, 249, 255, 0.03))
  );
  color: var(--bg-primary);
}

.project-cards {
  margin-top: 1rem;
}

/* 30 Days Challenge timeline */
#days-timeline details {
  margin-bottom: 1.5rem;
}

#days-timeline summary {
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--accent);
}

#days-timeline .project-cards {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}
