/* Cheating Psychology — Bespoke Editorial Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  --color-bg: #FDFBF7;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #F7F5F0;
  --color-text: #1C1917;
  --color-text-muted: #78716C;
  --color-accent: #991B1B;
  --color-accent-hover: #7F1D1D;
  --color-accent-light: #FEF2F2;
  --color-border: #E7E5E4;
  --color-border-dark: #D6D3D1;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
}

/* Film Grain Overlay */
.film-grain {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.035"/%3E%3C/svg%3E');
}

/* Editorial Dividers and Borders */
.editorial-border-b {
  border-bottom: 1px solid var(--color-border);
}

.editorial-border-t {
  border-top: 1px solid var(--color-border);
}

.gated-gradient {
  background: linear-gradient(to bottom, rgba(253, 251, 247, 0) 0%, rgba(253, 251, 247, 0.95) 60%, rgba(253, 251, 247, 1) 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-spinner {
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Prose Styling for Articles */
.prose-clinical p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #292524;
}

.prose-clinical p.lead {
  font-size: 1.35rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: #44403C;
  line-height: 1.7;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.prose-clinical h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.prose-clinical ul, .prose-clinical ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.prose-clinical li {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Badges */
.badge-tier-free {
  background-color: #E7E5E4;
  color: #44403C;
}

.badge-tier-entry {
  background-color: #292524;
  color: #FAFAF9;
}

.badge-tier-plus {
  background-color: #991B1B;
  color: #FFFFFF;
}

.badge-tier-full {
  background-color: #0C0A09;
  color: #FFFFFF;
  border: 1px solid #991B1B;
}

/* Print Styles */
@media print {
  .film-grain, header, footer, .no-print {
    display: none !important;
  }
  body {
    background: #FFF;
    color: #000;
  }
}
