/* ============================================
   Part 6: Language Switcher, Blog Page Styles
   ============================================ */

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid hsla(0, 0%, 100%, 0.08); background: hsla(0, 0%, 100%, 0.02); cursor: pointer; transition: all 0.3s var(--ease-out); font-size: 1.1rem; color: var(--text-primary); padding: 0; }
.lang-btn:hover { border-color: hsla(270, 80%, 60%, 0.3); background: hsla(270, 80%, 60%, 0.08); transform: translateY(-1px); }
.lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-code { display: none; }

.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 140px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-secondary); backdrop-filter: blur(20px); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.3s var(--ease-out); z-index: 100; box-shadow: 0 8px 30px hsla(0,0%,0%,0.4); }
.lang-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 0.85rem; color: var(--text-secondary); transition: all 0.2s ease; }
.lang-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-option.active { color: var(--primary-light); background: hsla(270, 85%, 55%, 0.08); }

/* ── Blog Page Styles ─────────────────────── */
.blog-section { position: relative; z-index: 1; padding: var(--section-padding) 0; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }

.blog-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); backdrop-filter: blur(10px); overflow: hidden; transition: all 0.4s var(--ease-out); }
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px hsla(0,0%,0%,0.3); }

.blog-card-image { height: 200px; background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary)); overflow: hidden; position: relative; }
.blog-card-image-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; color: var(--primary); opacity: 0.3; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.blog-card-date { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.blog-card-tag { font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; background: hsla(270, 85%, 55%, 0.12); color: var(--primary-light); border: 1px solid hsla(270, 85%, 55%, 0.2); }

.blog-card-title { font-family: 'Orbitron', monospace; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 0.3px; line-height: 1.4; }
.blog-card-title a { transition: color 0.3s ease; }
.blog-card-title a:hover { color: var(--primary-light); }

.blog-card-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.blog-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.blog-card-author { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.blog-card-readmore { font-size: 0.82rem; font-weight: 600; color: var(--primary-light); display: flex; align-items: center; gap: 6px; transition: all 0.3s ease; }
.blog-card-readmore:hover { color: var(--accent); gap: 10px; }

/* Blog Detail */
.blog-detail-section { position: relative; z-index: 1; padding: 40px 0 var(--section-padding); }
.blog-detail-wrapper { max-width: 800px; margin: 0 auto; }
.blog-detail-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.blog-detail-title { font-family: 'Orbitron', monospace; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.blog-detail-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; border: 1px solid var(--border); }
.blog-detail-hero img { width: 100%; max-height: 400px; object-fit: cover; }
.blog-detail-content { font-size: 1rem; color: var(--text-secondary); line-height: 1.9; }
.blog-detail-content h2 { font-family: 'Orbitron', monospace; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 32px 0 16px; }
.blog-detail-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 24px 0 12px; }
.blog-detail-content p { margin-bottom: 16px; }
.blog-detail-content ul, .blog-detail-content ol { margin: 16px 0; padding-left: 24px; }
.blog-detail-content li { margin-bottom: 8px; }
.blog-detail-content code { font-family: 'JetBrains Mono', monospace; background: var(--bg-tertiary); padding: 2px 8px; border-radius: 4px; font-size: 0.88rem; color: var(--primary-light); }
.blog-detail-content pre { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin: 20px 0; overflow-x: auto; }
.blog-detail-content pre code { background: none; padding: 0; }
.blog-detail-content blockquote { border-left: 3px solid var(--primary); padding: 12px 20px; margin: 20px 0; background: hsla(270, 85%, 55%, 0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.blog-detail-content img { border-radius: var(--radius-md); margin: 20px 0; max-width: 100%; }

/* Responsive */
@media (max-width: 768px) {
    .lang-dropdown { right: auto; left: 0; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card { padding: 20px; }
    .blog-detail-content { padding: 24px; }
}

@media (max-width: 480px) {
    .blog-card { padding: 16px; }
    .blog-card h3 { font-size: 0.92rem; }
    .blog-detail-content { padding: 16px; }
    .blog-detail-content h2 { font-size: 1.1rem; }
    .blog-detail-content h3 { font-size: 0.95rem; }
    .blog-detail-content p { font-size: 0.85rem; }
}

/* ── Cookie Banner ─────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px 24px;
    background: hsla(240, 10%, 8%, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cookieSlideUp 0.5s ease-out;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    width: 100%;
}
.cookie-icon {
    font-size: 1.6rem;
    color: var(--primary-light);
    flex-shrink: 0;
}
.cookie-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cookie-accept {
    background: var(--primary);
    color: #fff;
}
.cookie-accept:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}
.cookie-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.cookie-link:hover { color: var(--primary-light); }

@media (max-width: 640px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 12px; }
    .cookie-icon { display: none; }
}

/* ── Social Share Buttons ─────────────── */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px hsla(270, 85%, 55%, 0.15);
}
.share-btn i { font-size: 0.9rem; }
.share-btn.twitter:hover { border-color: #1da1f2; color: #1da1f2; }
.share-btn.telegram:hover { border-color: #2aabee; color: #2aabee; }
.share-btn.discord:hover { border-color: #5865f2; color: #5865f2; }
.share-btn.copy:hover { border-color: #22c55e; color: #22c55e; }
.share-btn.copied { border-color: #22c55e; color: #22c55e; background: hsla(142, 71%, 45%, 0.08); }

/* ── Review Cards ──────────────────────── */
.reviews-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.reviews-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}
.review-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.review-card:hover {
    border-color: var(--border-hover);
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}
.review-name {
    font-weight: 600;
    font-size: 0.92rem;
}
.review-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: hsla(142, 71%, 45%, 0.1);
    color: #22c55e;
    border: 1px solid hsla(142, 71%, 45%, 0.2);
}
.review-stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 0.85rem;
}
.review-stars .empty { color: var(--text-muted); opacity: 0.3; }
.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
}
.review-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Review Form */
.review-form {
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-top: 20px;
}
.review-form-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.review-star-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.review-star-input label {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.review-star-input label:hover,
.review-star-input label.active {
    color: #f59e0b;
}
.review-star-input input { display: none; }

/* ── Privacy Page ──────────────────────── */
.privacy-section {
    position: relative;
    z-index: 1;
    padding: 40px 0 var(--section-padding);
}
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.privacy-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 12px;
}
.privacy-content p { margin-bottom: 14px; }
.privacy-content ul { margin: 12px 0; padding-left: 24px; }
.privacy-content li { margin-bottom: 6px; }

/* ── FAQ Styles ─────────────────────── */
.faq-section { padding: var(--section-padding) 0; position: relative; z-index: 1; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); overflow: hidden; cursor: pointer; transition: all 0.3s var(--ease-out); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item.open { border-color: hsla(270, 85%, 55%, 0.3); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-weight: 600; font-size: 0.95rem; gap: 12px; }
.faq-icon { font-size: 0.8rem; color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--primary-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 22px 18px; }
.faq-answer p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.faq-filter-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; transition: all 0.3s ease; text-decoration: none; }
.faq-filter-btn:hover, .faq-filter-btn.active { background: hsla(270, 85%, 55%, 0.12); border-color: hsla(270, 85%, 55%, 0.3); color: var(--primary-light); }

/* ── Campaign Banner ─────────────────────── */
.campaign-banner { border-radius: var(--radius-lg); padding: 28px 32px; text-align: center; position: relative; overflow: hidden; margin: 24px 0; }
.campaign-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.2)); z-index: 0; }
.campaign-banner > * { position: relative; z-index: 1; }
.campaign-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; background: rgba(255,255,255,0.2); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; backdrop-filter: blur(5px); }
.campaign-title { font-family: 'Orbitron', monospace; font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.campaign-subtitle { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }
.campaign-countdown { display: inline-flex; gap: 12px; font-family: 'JetBrains Mono', monospace; }
.campaign-countdown-unit { text-align: center; }
.campaign-countdown-value { font-size: 1.6rem; font-weight: 800; display: block; }
.campaign-countdown-label { font-size: 0.65rem; opacity: 0.7; text-transform: uppercase; }

/* ── Profile Styles ─────────────────────── */
.profile-tab { padding: 12px 18px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all 0.3s ease; text-decoration: none; }
.profile-tab:hover { color: var(--text-primary); }
.profile-tab.active { color: var(--primary-light); border-bottom-color: var(--primary); }

.profile-order-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s ease; }
.profile-order-card:hover { border-color: var(--border-hover); }
.profile-status { padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.profile-status-pending { background: hsla(38, 92%, 50%, 0.12); color: #f59e0b; }
.profile-status-paid { background: hsla(217, 91%, 60%, 0.12); color: #3b82f6; }
.profile-status-processing { background: hsla(270, 85%, 55%, 0.12); color: #a855f7; }
.profile-status-completed { background: hsla(142, 71%, 45%, 0.12); color: #22c55e; }
.profile-status-cancelled { background: hsla(0, 72%, 51%, 0.12); color: #ef4444; }

.profile-wishlist-card { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s ease; }
.profile-wishlist-card:hover { border-color: hsla(270, 85%, 55%, 0.3); transform: translateY(-2px); }

/* ── Discord Widget ─────────────────────── */
.discord-widget-fixed { position: fixed; bottom: 20px; left: 20px; z-index: 1000; }
.discord-widget-btn { width: 56px; height: 56px; border-radius: 50%; background: #5865F2; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; box-shadow: 0 4px 20px rgba(88,101,242,0.4); cursor: pointer; transition: all 0.3s ease; border: none; }
.discord-widget-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(88,101,242,0.5); }
.discord-widget-tooltip { position: absolute; bottom: calc(100% + 10px); left: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: all 0.3s ease; pointer-events: none; color: var(--text-secondary); }
.discord-widget-fixed:hover .discord-widget-tooltip { opacity: 1; transform: translateY(0); }

/* Loading Skeleton */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, hsla(270, 20%, 30%, 0.15) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skeletonShimmer 1.5s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes skeletonShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { min-height: 280px; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 70%; margin-bottom: 12px; }
.skeleton-img { height: 180px; margin-bottom: 16px; }

/* Lazy Image Fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.4s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][complete] { opacity: 1; }

/* WhatsApp Floating */
.whatsapp-fixed:hover { transform: scale(1.08); box-shadow: 0 6px 28px hsla(142, 70%, 45%, 0.5); }

/* Breadcrumb (inline) */
.breadcrumb[itemscope] { padding: 16px 0; margin-top: 80px; }
.breadcrumb[itemscope] a:hover { color: var(--primary-light); }

/* Mega Menu */
.mega-menu-trigger { position: relative; }
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 320px; background: hsla(240, 20%, 8%, 0.96); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid hsla(270, 80%, 60%, 0.12); border-radius: 14px; padding: 12px; opacity: 0; visibility: hidden; transition: all 0.25s ease; z-index: 1002; box-shadow: 0 20px 50px hsla(0, 0%, 0%, 0.5); }
.mega-menu-trigger:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu-inner { display: flex; flex-direction: column; gap: 2px; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text-secondary); transition: all 0.2s ease; }
.mega-item:hover { background: hsla(270, 80%, 60%, 0.06); color: var(--text-primary); }
.mega-item-icon { font-size: 1.2rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: hsla(0, 0%, 100%, 0.04); flex-shrink: 0; }
.mega-item div { display: flex; flex-direction: column; gap: 2px; }
.mega-item strong { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.mega-item span { font-size: 0.72rem; color: var(--text-muted); }
[data-theme="light"] .mega-menu { background: hsla(240, 20%, 99%, 0.96); border-color: hsla(270, 60%, 70%, 0.15); box-shadow: 0 20px 50px hsla(0, 0%, 0%, 0.1); }

/* Mobile Mega Menu */
@media (max-width: 768px) {
    .mega-menu { position: static; transform: none; min-width: 100%; border-radius: 10px; margin-top: 8px; box-shadow: none; border: 1px solid hsla(270, 80%, 60%, 0.1); }
    .mega-menu-trigger:hover .mega-menu { transform: none; }
    .mega-item { padding: 10px 12px; }
    .mega-item-icon { width: 30px; height: 30px; font-size: 1rem; }
    .mega-item strong { font-size: 0.8rem; }
    .whatsapp-fixed { bottom: 16px !important; right: 16px !important; width: 46px !important; height: 46px !important; }
}
