/* ==========================================================================
   WALTER CK - GLOBAL STYLES
   ========================================================================== */

/* ─── Variables / Tokens ─── */
:root {
  --bg-900: #05070a;
  --bg-800: #0f1419;
  --text: #e6eef6;
  --muted: #94a3b8;
  --accent: #6b8cff;
  --accent-2: #5be6c0;
  --accent-glow: rgba(107, 140, 255, 0.25);

  --glass: rgba(255, 255, 255, 0.04);
  --surface: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);

  --radius: 16px;
  --shadow-1: 0 12px 40px rgba(0, 0, 0, 0.6);
  --container-padding: 24px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  font-family: Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg-900);
  background-image:
    radial-gradient(circle at 50% 15%, var(--accent-glow) 0%, transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(91, 230, 192, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Tools Page Background Override */
html:has(body.tools-page),
body.tools-page {
  background: #0a0d17 !important;
  background-image: none !important;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--card-border);
}

/* ─── Typography ─── */
h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

h2 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem); 
  letter-spacing: -0.02em;
}

/* ─── Main Page Specifics ─── */
.hero-main {
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-main h1 {
  font-size: clamp(2.2rem, 6vw + 1rem, 4rem); 
}

.tagline {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw + 0.5rem, 1.15rem);
  margin: 8px 0 0;
}

.profile-pfp {
  width: clamp(120px, 15vw + 60px, 160px);
  height: clamp(120px, 15vw + 60px, 160px);
  border-radius: 50%;
  border: 4px solid var(--accent);
  padding: 4px;
  background: var(--bg-900);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(107, 140, 255, 0.4);
  transition: var(--transition);
}

.profile-pfp:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(107, 140, 255, 0.6);
  border-color: var(--accent); 
}

.profile-pfp img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Meta Tags List */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.meta-left {
  justify-content: flex-start;
  margin-top: 16px;
}

.meta li {
  background: var(--glass);
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Contact Links */
.contact-section {
  text-align: left;
}

.contact-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-section a:hover {
  color: var(--accent);
}

/* ─── Cards Grid (Shared) ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 32px;
}

a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card {
  padding: 28px 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  box-shadow: var(--shadow-1);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

.tags {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Tools Page Specifics ─── */
.tools-hero {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-top: 40px;
}

.tools-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 35px;
}

.back-btn {
  position: absolute;
  top: 24px; /* Shifted down from 0 */
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  z-index: 10;
}

.back-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--card-border);
}

.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg-900);
}

.category-section {
  margin-bottom: 50px;
}

.category-title {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  opacity: 0.8;
  text-align: left;
}

.tool-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.tool-actions button {
  flex: 1;
  padding: 8px 0;
  font-size: 0.85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  transition: all 0.2s;
}

.tool-actions button:hover {
  background: var(--accent);
  color: #fff;
}

#empty {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
}
