/* Shared Blog Post Styles */
/* Include this in all blog posts for consistent styling */

/* Universal font family */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Critical background colors */
body {
    background-color: #09090b;
    color: #fafafa;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

/* Hide content until loaded to prevent FOUC */
[v-cloak] {
    display: none !important;
}

/* Critical header styles */
header {
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #27272a;
    contain: layout style;
}

/* Performance: Contain sections for better rendering */
section {
    contain: layout style paint;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch optimization for mobile */
button, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Optimize input rendering on mobile */
input, textarea, select {
    touch-action: manipulation;
}

/* GPU acceleration for transforms and opacity */
.transition-opacity, .transition-colors, .transition-all {
    will-change: transform, opacity;
}

/* Custom scrollbar for dark theme - desktop only */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: #18181b;
    }

    ::-webkit-scrollbar-thumb {
        background: #3f3f46;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #52525b;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Gradient text - optimized for mobile */
.gradient-text {
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    will-change: opacity;
}

/* Pulse animation for demo images - reduce on mobile */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (min-width: 768px) {
    .pulse-soft {
        animation: pulse-soft 2s ease-in-out infinite;
    }
}

/* Blog dropdown animations */
.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile header optimization - show full text above 375px */
@media (min-width: 375px) {
    .xs\:inline {
        display: inline;
    }
    .xs\:hidden {
        display: none;
    }
}

/* Smooth reading experience */
article p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

article h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

article li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Code blocks */
.code-block {
    background: #18181b;
    border: 1px solid #27272a;
    border-left: 4px solid #6366f1;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Highlight boxes */
.tip-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-left: 4px solid #6366f1;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: linear-gradient(135deg, #7c2d12 0%, #991b1b 100%);
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Step numbers */
.step-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Checklist style */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Search highlight (for glossary) */
.search-highlight {
    background-color: #fef08a;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Shot type card styling */
.shot-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.shot-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

/* Category badge */
.category-badge {
    display: inline-block;
    background: #312e81;
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive table wrapper */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper th {
    background: #18181b;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #27272a;
}

.table-wrapper td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #27272a;
}

.table-wrapper tr:last-child td {
    border-bottom: none;
}

/* Table of Contents Links */
.toc-link {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.toc-link:hover {
    color: #6366f1;
}

/* Inline highlight */
.highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Article header styling */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #71717a;
}

.article-category {
    color: #818cf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* FAQ styling */
.faq-item {
    padding: 1.5rem;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #a1a1aa;
    line-height: 1.7;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-box p {
    color: #e0e7ff;
    margin-bottom: 1.5rem;
}

.cta-box a {
    display: inline-block;
    background: white;
    color: #4f46e5;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-box a:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    article h1 {
        font-size: 2rem;
    }

    article h2 {
        font-size: 1.5rem;
    }

    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .tip-box, .warning-box {
        padding: 1rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

