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

/* CSS Variables */
:root {
  --primary: #6c35a6;
  --primary-light: #9059db;
  --primary-dark: #40186d;
  --accent: #d93b7a;
  --accent-light: #f7629f;
  --bg-main: #0c0612;
  --bg-glass: rgba(22, 11, 33, 0.7);
  --bg-card: #190c24;
  --text-main: #f3ebfc;
  --text-muted: #a691bd;
  --text-dark: #0f0718;
  --border: rgba(144, 89, 219, 0.18);
  --border-focus: rgba(217, 59, 122, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
}

/* Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.buyacaiberries-body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(108, 53, 166, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 59, 122, 0.12) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-glass-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.site-logo:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.logo-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(217, 59, 122, 0.3));
}

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

.logo-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-title);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 2rem 6rem 2rem;
  background: linear-gradient(185deg, rgba(25, 12, 36, 0.9) 0%, rgba(12, 6, 18, 1) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(144, 89, 219, 0.25) 0%, transparent 60%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(217, 59, 122, 0.1);
  border: 1px solid rgba(217, 59, 122, 0.3);
  color: var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #e2cffa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(108, 53, 166, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 53, 166, 0.5);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Layout Grid & Main Content */
.main-layout-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  flex: 1;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

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

.content-area {
  min-width: 0; /* Prevents overflow */
}

/* Main Article Styles */
.main-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.main-article:hover {
  border-color: rgba(144, 89, 219, 0.3);
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
}

.meta-item {
  font-size: 0.85rem;
  font-weight: 500;
}

.meta-item.category {
  color: var(--accent-light);
  background: rgba(217, 59, 122, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.meta-item.date {
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: white;
}

.article-content {
  font-size: 1.05rem;
  color: #e5dcf0;
  line-height: 1.75;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content p:first-of-type {
  font-size: 1.2rem;
  color: white;
  line-height: 1.6;
  font-weight: 500;
}

.article-content h2, 
.article-content h3 {
  font-family: var(--font-title);
  color: white;
  margin: 2.5rem 0 1.2rem 0;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.8rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.article-content h3 {
  font-size: 1.4rem;
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-light);
  background: rgba(144, 89, 219, 0.05);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-main);
}

.article-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.share-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-section span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.reference-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sidebar Styles */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.sidebar-card:hover {
  border-color: rgba(144, 89, 219, 0.3);
  transform: translateY(-2px);
}

.sidebar-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.card-badge {
  display: inline-block;
  background: rgba(144, 89, 219, 0.1);
  border: 1px solid rgba(144, 89, 219, 0.3);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.welcome-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-link {
  text-decoration: none;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-link:hover {
  color: white;
}

.link-bullet {
  color: var(--accent);
  font-weight: bold;
}

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

.link-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.link-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.benefit-list strong {
  color: var(--text-main);
}

/* Footer Styles */
.site-footer {
  background: #08030c;
  border-top: 1px solid var(--border);
  padding: 5rem 2rem 2rem 2rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-col h4 {
  font-family: var(--font-title);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: white;
  padding-left: 4px;
}

.disclaimer-text {
  font-size: 0.8rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}
