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

:root {
  --primary-color: #ff4a6e;
  --primary-hover: #e63946;
  --secondary-color: #7209b7;
  --accent-color: #4cc9f0;
  --bg-color: #fcfbfe;
  --bg-gradient-start: #f6f3fb;
  --bg-gradient-end: #fcfbfe;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(114, 9, 183, 0.06);
  --card-border-hover: rgba(255, 74, 110, 0.25);
  --text-primary: #1e1a24;
  --text-secondary: #4d4556;
  --text-muted: #82788e;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --sidebar-width: 280px;
  --max-width: 1200px;
  --transition-speed: 0.3s;
  --glow-shadow: 0 15px 35px rgba(114, 9, 183, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(114, 9, 183, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 74, 110, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Subtle decorative paw element background */
body::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 74, 110, 0.02) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Container */
.app-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Header Section */
header {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

/* Paw print icon style */
.logo-icon {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem;
  font-weight: 800;
  filter: drop-shadow(0 4px 6px rgba(255, 74, 110, 0.15));
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #1e1a24 0%, #5b4d6d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.meta-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 74, 110, 0.08);
  border: 1px solid rgba(255, 74, 110, 0.15);
  color: #d62246;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.platform {
  background: rgba(114, 9, 183, 0.06);
  border-color: rgba(114, 9, 183, 0.12);
  color: var(--secondary-color);
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Main Layout */
.layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar Navigation */
.sidebar {
  width: var(--sidebar-width);
  position: sticky;
  top: 40px;
  flex-shrink: 0;
}

.toc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(114, 9, 183, 0.03);
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(114, 9, 183, 0.08);
  padding-bottom: 10px;
}

.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: 12px;
}

.toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.toc-link:hover, .toc-link.active {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  padding-left: 15px;
}

/* Content Area */
.content-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(114, 9, 183, 0.03);
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--glow-shadow);
}

/* Sections & Typography */
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid rgba(255, 74, 110, 0.05);
  padding-bottom: 8px;
}

h2::before {
  content: "🐾";
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(255, 74, 110, 0.2));
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

p strong {
  color: var(--text-primary);
}

ul {
  list-style: none;
  margin-bottom: 20px;
}

ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

ul li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 1.5rem;
  position: absolute;
  left: 5px;
  top: -3px;
}

/* Callout Box */
.callout {
  background: rgba(114, 9, 183, 0.03);
  border: 1px solid rgba(114, 9, 183, 0.1);
  border-left: 4px solid var(--secondary-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.callout p {
  margin-bottom: 0;
  font-size: 1rem;
}

.callout-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* External Link Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 74, 110, 0.2);
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 74, 110, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 74, 110, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 74, 110, 0.1);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid rgba(114, 9, 183, 0.06);
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: 20px;
  }
  
  .toc-card {
    padding: 20px;
  }
  
  .toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .toc-item {
    margin-bottom: 0;
  }
  
  .toc-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding-left: 0;
    padding-bottom: 4px;
  }
  
  .toc-link:hover, .toc-link.active {
    border-bottom-color: var(--primary-color);
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .app-container {
    padding: 20px 15px;
  }
  
  header {
    margin-bottom: 30px;
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  .logo-icon {
    font-size: 2.2rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  .card {
    padding: 20px;
  }
  
  h2 {
    font-size: 1.3rem;
  }
}
