/* Blog Core Styles */
.blog-content {
  max-width: 75ch;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}

/* Typography */
.blog-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(45deg, var(--accent-gold), #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 2rem 0;
  line-height: 1.2;
}

.blog-content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--accent-gold);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-content h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--light-gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content p {
  margin-bottom: 1.5rem;
  color: #e5e7eb;
}

/* Code Blocks */
.blog-content pre {
  margin: 2rem -2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.blog-content :not(pre) > code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 0.9em;
  color: var(--accent-gold);
}

/* Lists */
.blog-content ul, .blog-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: #e5e7eb;
}

.blog-content li {
  margin: 0.5rem 0;
  padding-left: 0.5rem;
}

.blog-content ul > li {
  list-style-type: disc;
}

.blog-content ol > li {
  list-style-type: decimal;
}

/* Blockquotes */
.blog-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 1rem 1rem 0;
  font-style: italic;
  color: #d1d5db;
}

.blog-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Images */
.blog-content img {
  display: block;
  max-width: 100%;
  margin: 2.5rem auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.blog-content img:hover {
  transform: scale(1.02);
}

.blog-content figure {
  margin: 2.5rem -2rem;
}

.blog-content figcaption {
  text-align: center;
  margin-top: 1rem;
  color: #9ca3af;
  font-size: 0.9em;
  font-style: italic;
}

/* Links */
.blog-content a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.blog-content a:hover {
  color: var(--light-gold);
  text-decoration-thickness: 0.2em;
}

/* Tables */
.blog-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  overflow: hidden;
}

.blog-content th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: var(--accent-gold);
}

.blog-content th, .blog-content td {
  padding: 1rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Highlighted Content */
.blog-content mark {
  background: rgba(255, 215, 0, 0.15);
  color: var(--light-gold);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
}

/* Custom Components */
.blog-content .note {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 1rem;
}

.blog-content .warning {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 1rem;
}

.blog-content .tip {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
}

/* Code Syntax Highlighting */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6b7280;
}

.token.punctuation {
  color: #9ca3af;
}

.token.property,
.token.keyword {
  color: #93c5fd;
}

.token.string {
  color: #6ee7b7;
}

.token.operator,
.token.boolean,
.token.number {
  color: #fcd34d;
}

.token.selector,
.token.attr-name,
.token.attr-value {
  color: #d8b4fe;
}

.token.function {
  color: #60a5fa;
}

.token.class-name {
  color: #f472b6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-content {
    padding: 0 1rem;
  }

  .blog-content pre {
    margin: 2rem -1rem;
    padding: 1.5rem;
    font-size: 0.9em;
  }

  .blog-content figure {
    margin: 2rem -1rem;
  }

  .blog-content blockquote {
    margin: 2rem -1rem;
    padding: 1rem 1.5rem;
  }
}
:root {
  --accent-gold: #FFD700;
  --light-gold: #FFECB3;
  --primary-black: #0a0a0a;
  --glass-white: rgba(255, 255, 255, 0.05);
  --glass-gold: rgba(255, 215, 0, 0.1);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
}

* {
  cursor: default;
}

a, button, input, select, [role="button"] {
  cursor: pointer !important;
}

.text-input {
  cursor: text !important;
}

.bg-primary-black {
  background-color: var(--primary-black);
}

.text-accent-gold {
  color: var(--accent-gold);
}

.text-light-gold {
  color: var(--light-gold);
}

.border-glass-gold {
  border-color: var(--glass-gold);
}

/* Header Styles */
#main-header {
  transition: transform 0.3s ease, background-color 0.3s ease;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
}

#main-header.scroll-down {
  transform: translateY(-100%);
}

#main-header.scroll-up {
  transform: translateY(0);
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Blog Grid */
#blog-grid {
  gap: 1.75rem;
}

/* Blog Cards */
.glass-card {
  background: var(--glass-white);
  border: 1px solid var(--glass-gold);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

/* Aspect ratio utilities (fallback for Tailwind aspect-ratio) */
.aspect-w-16.aspect-h-9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 9 / 16 */
}
.aspect-w-16.aspect-h-9 > img,
.aspect-w-16.aspect-h-9 > video,
.aspect-w-16.aspect-h-9 > iframe,
.aspect-w-16.aspect-h-9 > picture,
.aspect-w-16.aspect-h-9 > .media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.blog-card img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover img {
  transform: scale(1.1);
}

.blog-card h2 {
  transition: color 0.3s ease;
}

.blog-card:hover h2 {
  color: var(--accent-gold);
}

/* Search and Filter */
.search-input, .category-filter {
  background: var(--glass-white);
  border: 1px solid var(--glass-gold);
  transition: all 0.3s ease;
}

.search-input:focus, .category-filter:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.07);
}

.category-filter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FFD700'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

/* Tags */
.tag {
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--glass-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Blog Post Content */
.prose {
  max-width: 80ch;
  line-height: 1.8;
  font-size: 1.125rem;
  color: var(--text-main);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: var(--accent-gold);
  margin-bottom: 1.5em;
  font-weight: 600;
}

.prose h1 {
  font-size: 2.5rem;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.75rem;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.prose a:hover {
  color: var(--light-gold);
  text-decoration: underline;
}

.prose img {
  border-radius: 1rem;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.prose img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.prose pre {
  background: #0f0f0f;
  border: 1px solid var(--glass-gold);
  border-radius: 0.75rem;
  padding: 1.75rem;
  font-size: 0.9rem;
  position: relative;
}

.prose pre .copy-to-clipboard {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--glass-white);
  color: var(--text-muted);
  border: 1px solid var(--glass-gold);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prose pre .copy-to-clipboard:hover {
  background: var(--glass-gold);
  color: var(--accent-gold);
}

.prose pre .copy-to-clipboard .ri-check-line {
  color: var(--accent-gold);
}

.prose code {
  font-family: 'Fira Code', monospace;
  color: var(--text-main);
}

.prose blockquote {
  border-left-width: 4px;
  border-left-color: var(--accent-gold);
  color: var(--text-muted);
  padding-left: 1.5rem;
  font-style: italic;
}

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

.prose li::marker {
  color: var(--accent-gold);
}

/* Table of Contents */
.toc {
  background: var(--glass-white);
  border: 1px solid var(--glass-gold);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

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

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.toc-link:hover {
  color: var(--accent-gold);
}

/* Social Share Buttons */
.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-white);
  color: white;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.social-share-btn:hover {
  background: var(--glass-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Safari fix */
@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  #main-header, .glass-card, .search-input, .category-filter, .toc {
    background: rgba(20, 20, 20, 0.85);
  }
}
