@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Color Palette */
  --primary: #FF6B6B;
  --primary-hover: #EE5253;
  --primary-light: rgba(255, 107, 107, 0.12);
  --secondary: #4ECDC4;
  --secondary-dark: #36B5AC;
  --accent: #FFE66D;
  --dark: #1E293B;
  --dark-surface: #0F172A;
  --light-surface: #F8FAFC;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-main: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(255, 107, 107, 0.2);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 50%, #EFF6FF 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* NAVBAR */
.navbar-custom {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  transition: var(--transition);
}

.brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.brand-logo span.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link-custom {
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link-custom:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* BUTTONS */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #FFF !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 107, 107, 0.35);
  color: #FFF;
}

.btn-secondary-custom {
  background: #FFF;
  color: var(--dark) !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary-custom:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* HERO SECTION */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 107, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #FF9F43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #FFF;
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(255,255,255,0.6);
  z-index: 10;
}

/* CARDS & GLASS */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}

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

.feature-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  background: #FFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), rgba(78, 205, 196, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

/* AUTH FORMS */
.auth-container {
  max-width: 460px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: #FFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h2 {
  font-weight: 800;
  font-size: 2rem;
  color: var(--dark);
}

.form-label-custom {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-control-custom:focus {
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

/* DASHBOARD & FEED */
.user-profile-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-surface) 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.user-avatar-lg {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  border: 4px solid #FFF;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.post-card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.post-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.pet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* FOOTER */
.footer-custom {
  margin-top: auto;
  background: #FFF;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

/* SYSTEM SELECTOR CARDS FOR LOGIN */
.system-selector-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.system-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  background: var(--light-surface);
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  user-select: none;
}

.system-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.system-card.active-pet {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.04);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
}

.system-card.active-auto {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.system-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.6rem;
}

.system-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.system-card-icon.pet {
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
  color: white;
}

.system-card-icon.auto {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.system-card-checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.system-card.active-pet .system-card-checkbox-custom {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: white;
}

.system-card.active-auto .system-card-checkbox-custom {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.system-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.system-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}