/* ===== Little Paw - Pet Care Blog CSS ===== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --teal-dark: #115e59;
  --deep-navy: #1e293b;
  --mint-cream: #f0fdfa;
  --coral: #f43f5e;
  --coral-light: #fff1f2;
  --emerald: #10b981;
  --emerald-light: #d1fae5;
  --indigo: #6366f1;
  --indigo-light: #e0e7ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-primary: #f0fdfa;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-soft: 0 2px 15px rgba(13, 148, 136, 0.08);
  --shadow-elevated: 0 8px 30px rgba(13, 148, 136, 0.15);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--deep-navy);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle::before {
  content: '🐕';
  font-size: 1rem;
}

.body-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240, 253, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 72px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--deep-navy);
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--teal);
}

/* Mobile Nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.mobile-nav {
  display: none;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--teal);
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: block; }
}

/* --- Hero Sections --- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--mint-cream) 0%, var(--teal-light) 50%, var(--coral-light) 100%);
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .body-text {
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
}

.hero-simple {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--mint-cream) 0%, var(--teal-light) 50%, var(--coral-light) 100%);
  text-align: center;
}

.hero-simple h1 {
  margin: 16px 0;
}

.hero-simple .body-text {
  max-width: 640px;
  margin: 0 auto;
}

.section-alt {
  background: var(--teal-light);
  padding: 80px 0;
}

.hero-image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.hero-image-section img {
  border-radius: var(--radius);
  object-fit: cover;
  height: 280px;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.hero-full-image {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.hero-full-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

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

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-image-wrapper {
  overflow: hidden;
}

.card-body {
  padding: 24px;
}

.card-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cat-cat-care { background: var(--teal-light); color: var(--teal-dark); }
.cat-dog-care { background: var(--indigo-light); color: var(--indigo); }
.cat-health { background: var(--emerald-light); color: var(--emerald); }
.cat-nutrition { background: var(--coral-light); color: var(--coral); }
.cat-training { background: #ede9fe; color: #7c3aed; }
.cat-grooming { background: #fce7f3; color: #db2777; }

.card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-meta-item svg {
  width: 14px;
  height: 14px;
}

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

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-image-section { grid-template-columns: 1fr; }
}

/* --- Category Filter --- */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(240, 253, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.category-btn:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.category-btn.active {
  background: var(--teal);
  color: #fff;
}

/* --- Featured Section --- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.featured-side .featured-card img {
  min-height: 180px;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: #fff;
}

.featured-overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.featured-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card img { min-height: 280px; }
}

/* --- Newsletter --- */
.newsletter {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 12px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  background: var(--coral);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #e11d48;
}

@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}

/* --- Topics Section --- */
.topic-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

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

.topic-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.topic-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- About Page --- */
.about-mission {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-soft);
}

.writer-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.writer-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--teal-light);
}

.writer-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.writer-role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

.writer-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .writer-card { flex-direction: column; align-items: center; text-align: center; }
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--deep-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: var(--bg-card);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* --- Policies Hub --- */
.policy-link-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  display: block;
}

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

.policy-link-card h3 {
  margin-bottom: 8px;
}

.policy-link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.policy-link-card .link-arrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--teal);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

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

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

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: var(--shadow-elevated);
  border-left: 4px solid var(--teal);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 4px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- No Results --- */
#no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

#no-results p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }
