:root {
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --accent: #ec4899; /* Pinkish for "Love" */
  --accent-hover: #db2777;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Layout */
.layout-container {
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 3rem;
  flex: 1;
}

header, footer {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  padding-top: 2rem;
  border-right: 1px solid var(--border);
  align-self: flex-start;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.sidebar h3 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.sidebar nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0;
  list-style: none;
}

.sidebar nav a {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.sidebar nav a:hover {
  background-color: #fff;
  color: var(--accent);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

/* Main Content */
main {
  flex: 1;
  padding-top: 2rem;
  min-width: 0; /* Prevents flex child from overflowing */
  padding-bottom: 4rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.mobile-menu-toggle:hover {
  background-color: #f1f5f9;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
    gap: 0;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: none; /* Hidden by default on mobile */
    padding-bottom: 1rem;
    position: static;
    max-height: none;
  }

  .sidebar.active {
    display: block;
    animation: slideDown 0.2s ease-out;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Adjust grid for smaller main area if needed */
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, var(--accent), #be185d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; color: var(--text-light); }

ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-light);
}

li { margin-bottom: 0.5rem; }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.3);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(236, 72, 153, 0.4);
  text-decoration: none;
  color: white;
}

.badge {
  display: inline-block;
  background-color: #fce7f3; /* Light pink */
  color: #be185d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.section {
  margin-bottom: 5rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Specific Sections */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(to bottom, #fff, #fdf2f8);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.hero h1 {
  max-width: 25ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 65ch;
  margin: 0 auto 1.5rem;
}

.ai-intent {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 1rem;
  opacity: 0.8;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  background: #fff;
}

.gift-item h3 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.gift-item p strong {
  color: var(--text);
}

.gift-item .btn {
  margin-top: auto;
  width: 100%;
}

.gift-category-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: #fff;
}

.gift-category-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
}

.gift-category-link h3 {
  margin-bottom: 0.5rem;
  color: inherit;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card-bg);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 100;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
}

.dropdown-content a {
  color: var(--text);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #f8fafc;
  color: var(--accent);
}

/* Show dropdown on hover for desktop */
@media (min-width: 768px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Show dropdown when toggled (mobile/click) */
.dropdown-content.show {
  display: block;
}
