/* Premium Blog Layout Styles */
:root {
  --blog-text: #334155;
  --blog-heading: #0f172a;
  --blog-primary: #6366f1;
  --blog-bg: #f8fafc;
  --blog-surface: #ffffff;
  --blog-border: #e2e8f0;
}

.premium-blog {
  background-color: var(--blog-bg);
  padding-bottom: 80px;
}

/* Premium Hero Section */
.premium-hero {
  position: relative;
  padding: 120px 20px 80px;
  background: var(--blog-surface);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--blog-border);
}

.premium-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 50%),
              radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent 50%);
  pointer-events: none;
}

.ph-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s ease-out forwards;
}

.ph-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ph-category {
  color: var(--blog-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
}

.ph-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blog-heading);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.ph-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #475569;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 40px;
}

.ph-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ph-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blog-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.ph-author-info {
  text-align: left;
}

.ph-author-name {
  display: block;
  font-weight: 600;
  color: var(--blog-heading);
}

.ph-author-role {
  display: block;
  font-size: 14px;
  color: #64748b;
}

/* Feature Image */
.premium-cover {
  max-width: 1100px;
  margin: -40px auto 60px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 3;
  animation: scaleUp 1s ease-out 0.2s forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.premium-cover img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.premium-cover:hover img {
  transform: scale(1.03);
}

/* Content Layout */
.premium-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

@media (max-width: 1024px) {
  .premium-body {
    grid-template-columns: 1fr;
  }
}

/* Article Styling */
.premium-article {
  background: var(--blog-surface);
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--blog-border);
  font-size: 18px;
  line-height: 1.8;
  color: var(--blog-text);
}

@media (max-width: 768px) {
  .premium-article {
    padding: 30px 20px;
  }
}

.premium-article h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--blog-heading);
  margin: 40px 0 20px;
  letter-spacing: -0.5px;
}

.premium-article h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--blog-heading);
  margin: 35px 0 16px;
}

.premium-article p {
  margin-bottom: 24px;
}

.premium-article ul, .premium-article ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.premium-article li {
  margin-bottom: 12px;
  padding-left: 10px;
}

.premium-article li::marker {
  color: var(--blog-primary);
}

.premium-article strong {
  color: var(--blog-heading);
  font-weight: 700;
}

/* Custom Blockquote */
.premium-quote {
  margin: 40px 0;
  padding: 30px 40px;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
  border-left: 4px solid var(--blog-primary);
  border-radius: 0 16px 16px 0;
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  color: var(--blog-heading);
  line-height: 1.6;
}

/* Highlight Box */
.premium-highlight {
  background: #f8fafc;
  padding: 40px;
  border-radius: 16px;
  margin: 40px 0;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.premium-highlight::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--blog-primary);
}

.premium-highlight h3 {
  margin-top: 0;
  color: var(--blog-primary);
}

/* Sidebar Styling */
.premium-sidebar {
  position: sticky;
  top: 100px;
}

.toc-card {
  background: var(--blog-surface);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--blog-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blog-heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
}

.toc-list a {
  text-decoration: none;
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: block;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--blog-primary);
}

.toc-list a.active {
  color: var(--blog-primary);
  font-weight: 700;
  border-left: 2px solid var(--blog-primary);
}

/* Premium Bento Grid Stats */
.stats-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

@media (max-width: 600px) {
  .stats-bento {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-icon svg {
  width: 24px;
  height: 24px;
}

.bento-value {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

.bento-label {
  font-size: 16px;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
}

/* Animations */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
