/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #222;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header (reuse same style for consistency) */
.app-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #e6e8eb;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 0;
}

.header-center {
  display: flex;
  flex: 0 1 auto;
  flex-shrink: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 0 0;
  justify-content: flex-end;
}

.logo {
  width: 28px;
  height: 28px;
  margin-right: 17px;
}

.button-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  margin-bottom: 5px;
  flex-shrink: 0;
  vertical-align: middle;
  opacity: 0.5;
}

.explore-icon {
  margin-bottom: 4px;
}

/* Header center */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: 1px solid #dcdfe3;
  border-radius: 3px;
  padding: 6px 12px;
  width: clamp(200px, 40vw, 600px);
  pointer-events: all;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar:focus-within {
  border-color: #0a7cff;
  box-shadow: 0 0 0 3px rgba(10, 124, 255, 0.12);
  background: #fff;
}

.search-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  opacity: 0.4;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: #111;
  width: 100%;
}

.search-input::placeholder {
  color: #aaa;
  font-size: 15px;
}

/* Header right */
.secondary-btn {
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: 1px solid #e6e8eb;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.secondary-btn:hover {
  background: #ebebeb;
}

.secondary-btn.active {
  background: #f0f0f0;
  color: #111;
  border-color: transparent;
}

.secondary-btn.active:hover {
  background: #e4e4e4;
}

a.secondary-btn {
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  color: inherit;
  padding: 4px 14px;
}

/* Primary button */
.primary-btn {
  font-family: 'Inter', sans-serif;
  background: #0a7cff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
}

.primary-btn:hover {
  background: #0664cc;
}

/* Container */
.projects-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.projects-container h1 {
  font-size: 2rem;
  margin-bottom: 0.5em;
  color: #111;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  margin-top: 64px;
  border-top: 1px solid #e6e8eb;
  font-size: 14px;
  color: #888;
}

.site-footer a {
  color: #888;
  text-decoration: none;
}

.site-footer a:hover {
  color: #111;
}

/* Tooltip */
.project-visibility-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-visibility-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.project-visibility-icon.hidden {
  display: none;
}

.project-visibility-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.project-visibility-icon:hover::after {
  opacity: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-link:hover {
  opacity: 0.85;
  cursor: pointer;
}