/*
Theme Name: Lila Portfolio
Theme URI: 
Author: Custom
Description: Minimal lila portfolio theme
Version: 1.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f0eef4;
  --bg2:       #e8e4f0;
  --white:     #ffffff;
  --lila-100:  #e9e4f8;
  --lila-200:  #c8bcec;
  --lila-400:  #9b84d8;
  --lila-600:  #7057b8;
  --lila-800:  #4a3880;
  --text:      #2d2540;
  --text-muted:#7a6e92;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(112,87,184,0.08);
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.75;
}

a { color: var(--lila-600); text-decoration: none; }
a:hover { color: var(--lila-800); }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240,238,244,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lila-200);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--lila-800);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
  background: var(--lila-100);
  color: var(--lila-800);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lila-600);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== PAGE WRAPPER ===== */
#page { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ===== HOME HERO SECTION ===== */
.home-hero {
  display: flex;
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 64px);
  padding: 80px 0;
}

/* Photo side */
.hero-photo-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-photo-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 8px 40px rgba(112,87,184,0.18), 0 0 0 8px var(--lila-100);
  background: var(--lila-100);
  position: relative;
}

.hero-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Placeholder when no photo */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--lila-400);
}
.photo-placeholder svg { width: 64px; height: 64px; opacity: 0.5; }
.photo-placeholder p { font-family: 'Lato', sans-serif; font-size: 0.78rem; text-align: center; color: var(--lila-400); max-width: 140px; line-height: 1.5; }

.hero-photo-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lila-400);
}

/* Bio side */
.hero-bio {
  flex: 1;
}

.hero-bio .eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lila-400);
  margin-bottom: 14px;
}

.hero-bio h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--lila-800);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-bio .bio-card {
  background: var(--white);
  border: 1px solid var(--lila-200);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.hero-bio .bio-card h2 {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lila-400);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-bio .bio-card h2::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--lila-200);
}

.bio-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
}

/* Edit hint (only in admin) */
.edit-hint {
  margin-top: 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  color: var(--lila-400);
  border-left: 2px solid var(--lila-200);
  padding-left: 12px;
}

/* ===== TEST CASES PAGE ===== */
.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--lila-200);
  margin-bottom: 56px;
}
.page-hero .eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lila-400);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--lila-800);
}

.test-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}

.test-card {
  background: var(--white);
  border: 1px solid var(--lila-200);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.test-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lila-400), var(--lila-200));
  border-radius: var(--radius) var(--radius) 0 0;
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(112,87,184,0.15);
}
.test-card .card-tag {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lila-600);
  background: var(--lila-100);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.test-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--lila-800);
  margin-bottom: 10px;
}
.test-card p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* No test cases yet */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-family: 'Lato', sans-serif;
}
.no-posts p { margin-top: 12px; font-size: 0.9rem; }

/* ===== GENERAL POST/PAGE CONTENT ===== */
.entry-content {
  max-width: 700px;
  padding: 64px 0 80px;
  font-size: 1.05rem;
  line-height: 1.85;
}
.entry-content h2 { font-size: 1.8rem; color: var(--lila-800); margin: 2rem 0 1rem; }
.entry-content p  { margin-bottom: 1.2rem; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--lila-100);
  border-top: 1px solid var(--lila-200);
  text-align: center;
  padding: 28px 32px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  color: var(--lila-400);
  letter-spacing: 0.04em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; flex-wrap: wrap; height: auto; padding: 16px 24px; }
  #mobile-menu {
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--lila-200);
    padding: 12px 0;
    display: none;
  }
  #mobile-menu.open { display: block; }
  #mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
  #mobile-menu ul li a {
    display: block;
    padding: 12px 24px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  #mobile-menu ul li a:hover { background: var(--lila-100); color: var(--lila-800); }

  .home-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 48px 0 64px;
    min-height: unset;
  }
  .hero-photo-wrap { align-self: center; }
  .hero-photo-circle { width: 220px; height: 220px; }
  #page { padding: 0 20px; }
}

/* ===== BIOGRAPHY PAGE ===== */
.biography-content {
  max-width: 720px;
  padding: 0 0 80px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text);
}

.biography-content p {
  margin-bottom: 1.4rem;
}

.biography-content h2 {
  font-size: 1.7rem;
  color: var(--lila-800);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}

.biography-content h3 {
  font-size: 1.3rem;
  color: var(--lila-600);
  margin: 2rem 0 0.8rem;
  font-weight: 500;
}

.biography-content strong {
  color: var(--lila-800);
  font-weight: 600;
}

.biography-content a {
  color: var(--lila-600);
  border-bottom: 1px solid var(--lila-200);
  transition: border-color 0.2s, color 0.2s;
}

.biography-content a:hover {
  color: var(--lila-800);
  border-color: var(--lila-400);
}

/* ===== SUPPRESS SIDEBAR (extra safety) ===== */
.widget-area,
#secondary,
.sidebar,
#sidebar,
.wp-block-widget-area {
  display: none !important;
}

/* Make sure page wrapper never shows sidebar layout */
body.page #page {
  display: block;
  max-width: 1100px;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--lila-200);
  color: var(--lila-400);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-icons a:hover {
  background: var(--lila-100);
  color: var(--lila-800);
  border-color: var(--lila-400);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 16px;
  height: 16px;
}
