/* =========================================
   OTAKU.FR BLOG - CSS
   Theme: Dark Otaku (navy, blue, amber)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0f0f23;
    --bg-card: #1a1a2e;
    --bg-card-hover: #16213e;
    --blue: #3b82f6;
    --blue-dark: #1e40af;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(59, 130, 246, 0.2);
    --glow-blue: rgba(59, 130, 246, 0.3);
    --glow-amber: rgba(245, 158, 11, 0.3);
}

/* === BLOG HERO === */
.blog-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--border);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, 5%); }
}

.blog-hero .container { position: relative; z-index: 1; }

.blog-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 0 30px var(--glow-blue);
    letter-spacing: 2px;
}

.blog-hero h1 span {
    background: linear-gradient(135deg, var(--blue), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero .hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === BLOG GRID === */
.blog-section {
    background: var(--bg-dark);
    padding: 60px 0 80px;
    min-height: 50vh;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* === ARTICLE CARD === */
.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--amber));
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15), 0 0 30px var(--glow-blue);
}

.blog-card:hover::before { opacity: 1; }

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-image .card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--glow-blue);
}

.blog-card-body {
    padding: 24px;
}

.blog-card-body h2 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-body h2 a:hover { color: var(--amber); }

.blog-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-card-meta .read-time { color: var(--amber); font-weight: 600; }

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.blog-card .read-more:hover {
    color: var(--amber);
    gap: 12px;
}

/* === SINGLE ARTICLE === */
.article-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    padding: 100px 0 40px;
    border-bottom: 2px solid var(--border);
}

.article-hero .container { max-width: 800px; margin: 0 auto; }

.article-breadcrumb {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-breadcrumb a { color: var(--blue); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--amber); }

.article-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.3;
    text-shadow: 0 0 20px var(--glow-blue);
}

.article-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
}

.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-meta .icon { color: var(--amber); }

.article-content-section {
    background: var(--bg-dark);
    padding: 60px 0 80px;
}

.article-content-section .container { max-width: 800px; margin: 0 auto; }

.article-body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-primary);
}

.article-body h2 {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--amber));
}

.article-body h3 {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 36px 0 16px;
}

.article-body p { margin: 0 0 20px; }

.article-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--amber-light); }

.article-body ul, .article-body ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.article-body li::marker { color: var(--amber); }

.article-body strong { color: #fff; }

.article-body blockquote {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(245, 158, 11, 0.05));
    border-left: 4px solid var(--blue);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Info box / CTA box */
.info-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 28px;
    margin: 32px 0;
}

.info-box.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.info-box h4 {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
    margin: 0 0 12px;
}

.info-box.amber h4 { color: var(--amber); }

.cta-box {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 16px;
    padding: 40px;
    margin: 48px 0;
    text-align: center;
    border: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(245, 158, 11, 0.15), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cta-box h3 {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 24px;
    position: relative;
}

.cta-box .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--amber), #d97706);
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px var(--glow-amber);
    position: relative;
}

.cta-box .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table thead th {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tbody td {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.comparison-table tbody tr:hover td { background: var(--bg-card-hover); }

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

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-tags a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--blue);
}

/* Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.article-share span {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}

.blog-empty .empty-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.3; }
.blog-empty h3 { font-family: 'Orbitron', monospace; color: var(--text-primary); margin: 0 0 12px; }
.blog-empty p { color: var(--text-secondary); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Section titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.section-title span {
    background: linear-gradient(135deg, var(--blue), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 { font-size: 32px; }
    .blog-hero { padding: 60px 0 40px; }
    .article-hero h1 { font-size: 26px; }
    .article-body { font-size: 16px; }
    .cta-box { padding: 28px 20px; }
    .cta-box h3 { font-size: 18px; }
}