﻿/* ============================================
   COC Komputer â€” Magazine Theme 2026
   Tech News Portal Â· Premium Dark Edition
   ============================================ */

/* === Variables === */
:root {
    --mag-bg: #0a0e14;
    --mag-surface: #111820;
    --mag-card: #151c26;
    --mag-card-hover: #1a2332;
    --mag-border: rgba(255,255,255,0.06);
    --mag-text: #e2e8f0;
    --mag-text-dim: #8b9ab5;
    --mag-text-muted: #5a6b82;
    --mag-accent: #FF6B35;
    --mag-accent-glow: rgba(255,107,53,0.15);
    --mag-blue: #3b82f6;
    --mag-green: #10b981;
    --mag-purple: #8b5cf6;
    --mag-red: #ef4444;
    --mag-yellow: #f59e0b;
    --mag-cyan: #06b6d4;
    --mag-pink: #ec4899;
    --mag-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mag-radius: 10px;
    --mag-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Magazine Layout === */
.mag-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Top Bar (Breaking News Ticker) === */
.mag-ticker { overflow: hidden; 
    background: linear-gradient(90deg, var(--mag-accent), #e04e1a);
    padding: 0.4rem 0;
    overflow: hidden;
    position: relative;
}

.mag-ticker-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.mag-ticker span {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mag-ticker .ticker-label {
    background: rgba(0,0,0,0.25);
    padding: 0.15rem 0.6rem;
    border-radius: 3px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Magazine Header === */
.mag-header {
    background: var(--mag-surface);
    border-bottom: 1px solid var(--mag-border);
    padding: 1.25rem 0;
}

.mag-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mag-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.mag-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--mag-accent), #e04e1a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 4px 15px var(--mag-accent-glow);
}

.mag-logo-text {
    display: flex;
    flex-direction: column;
}

.mag-logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mag-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.mag-logo-tagline {
    font-size: 0.72rem;
    color: var(--mag-text-muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mag-date {
    font-size: 0.8rem;
    color: var(--mag-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* === Category Navigation === */
.mag-nav {
    background: var(--mag-bg);
    border-bottom: 1px solid var(--mag-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.mag-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Hamburger Button â€” hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--mag-border);
    border-radius: 8px;
    cursor: pointer;
    margin: 0.5rem 0;
    flex-shrink: 0;
    transition: var(--mag-transition);
}

.nav-toggle:hover {
    background: var(--mag-accent-glow);
    border-color: var(--mag-accent);
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--mag-text);
    border-radius: 2px;
    transition: var(--mag-transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav Menu â€” desktop: horizontal flex row */
.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Izinkan membungkus jika layar sempit */
    width: 100%;
}

.mag-nav a {
    color: var(--mag-text-dim);
    text-decoration: none;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mag-nav a:hover,
.mag-nav a.active {
    color: var(--mag-accent);
    background: rgba(255, 107, 53, 0.08);
}

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

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

/* Mobile: hamburger visible, nav collapses */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--mag-surface);
        border-bottom: 2px solid var(--mag-accent);
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-menu.open {
        display: flex;
    }

    .mag-nav a {
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid var(--mag-border);
        border-left: 3px solid transparent;
        font-size: 0.95rem;
    }

    .mag-nav a:hover,
    .mag-nav a.active {
        border-bottom-color: var(--mag-border);
        border-left-color: var(--mag-accent);
        background: var(--mag-accent-glow);
        color: var(--mag-accent);
    }

    /* Separator becomes horizontal divider on mobile */
    .nav-separator {
        display: block !important;
        width: 100%;
        height: 1px;
        background: var(--mag-border);
        margin: 0.5rem 0;
    }

    .nav-separator::after {
        content: 'Info';
        display: block;
        padding: 0.4rem 1.5rem;
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--mag-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-top: 0.25rem;
    }
}

/* === Nav Separator (desktop: vertical bar) === */
.nav-separator {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: var(--mag-border);
    margin: 0 0.5rem;
    align-self: center;
    flex-shrink: 0;
}

/* === Hero / Featured Section === */
.mag-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.mag-hero-main {
    position: relative;
    border-radius: var(--mag-radius);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: var(--mag-card);
    transition: var(--mag-transition);
    text-decoration: none;
}

.mag-hero-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.mag-hero-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-hero-main:hover img {
    transform: scale(1.03);
}

.mag-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    width: 100%;
}

.mag-hero-overlay .mag-cat {
    display: inline-block;
    background: var(--mag-accent);
    color: white;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.mag-hero-overlay h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.mag-hero-overlay p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

/* === Hero Comparison Hub === */
.mag-hero-comparison {
    min-height: 300px;
    background: linear-gradient(135deg, #111820 0%, #0a0e14 100%);
    border: 1px solid var(--mag-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: var(--mag-radius);
    position: relative;
    overflow: hidden;
}

.mag-hero-comparison .mag-hero-overlay {
    background: none;
    padding: 0;
}

.mag-hero-meta {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mag-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mag-hero-card {
    position: relative;
    border-radius: var(--mag-radius);
    overflow: hidden;
    flex: 1;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    background: var(--mag-card);
    text-decoration: none;
    transition: var(--mag-transition);
}

.mag-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.mag-hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mag-hero-card:hover img {
    transform: scale(1.04);
}

.mag-hero-card .mag-hero-overlay {
    padding: 1.25rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.mag-hero-card .mag-hero-overlay h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* === Section Headers === */
.mag-section {
    margin: 2.5rem 0 1.25rem;
}

.mag-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mag-border);
}

.mag-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mag-text);
    letter-spacing: -0.02em;
}

.mag-section-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.mag-section-link {
    font-size: 0.8rem;
    color: var(--mag-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--mag-transition);
}

.mag-section-link:hover {
    text-decoration: underline;
}

/* === Article Grid === */
.mag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.mag-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mag-card {
    background: var(--mag-card);
    border: 1px solid var(--mag-border);
    border-radius: var(--mag-radius);
    overflow: hidden;
    transition: var(--mag-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.mag-card:hover {
    border-color: rgba(255,107,53,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

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

.mag-card:hover .mag-card-img {
    transform: scale(1.04);
}

.mag-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.mag-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mag-card .mag-cat {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    width: fit-content;
}

.mag-card h3 {
    color: var(--mag-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.mag-card p {
    color: var(--mag-text-dim);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.mag-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mag-border);
    font-size: 0.75rem;
    color: var(--mag-text-muted);
}

/* === Trending Sidebar List === */
.mag-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: trending;
}

.mag-trending-list li {
    counter-increment: trending;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mag-border);
    transition: var(--mag-transition);
}

.mag-trending-list li:last-child {
    border-bottom: none;
}

.mag-trending-list li:hover {
    padding-left: 0.5rem;
}

.mag-trending-list a {
    text-decoration: none;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.mag-trending-list a::before {
    content: counter(trending, decimal-leading-zero);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--mag-accent);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
}

.mag-trending-list .trend-content h4 {
    color: var(--mag-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.3rem;
    transition: var(--mag-transition);
}

.mag-trending-list a:hover .trend-content h4 {
    color: var(--mag-accent);
}

.mag-trending-list .trend-content span {
    font-size: 0.72rem;
    color: var(--mag-text-muted);
}

/* === Main + Sidebar Layout === */
.mag-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin: 2rem 0;
}

.mag-sidebar {
    position: sticky;
    top: 60px;
    align-self: start;
}

.mag-sidebar-box {
    background: var(--mag-card);
    border: 1px solid var(--mag-border);
    border-radius: var(--mag-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.mag-sidebar-box h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--mag-text);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--mag-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === Category Color Badges === */
.cat-hardware { background: rgba(59,130,246,0.15); color: #60a5fa; }
.cat-laptop { background: rgba(139,92,246,0.15); color: #a78bfa; }
.cat-gaming { background: rgba(16,185,129,0.15); color: #34d399; }
.cat-ai { background: rgba(236,72,153,0.15); color: #f472b6; }
.cat-trending { background: rgba(239,68,68,0.15); color: #f87171; }
.cat-tips { background: rgba(245,158,11,0.15); color: #fbbf24; }
.cat-review { background: rgba(6,182,212,0.15); color: #22d3ee; }
.cat-perbandingan { background: rgba(255,107,53,0.15); color: #ff8c5a; }

/* === Magazine Footer === */
.mag-footer {
    background: var(--mag-surface);
    border-top: 1px solid var(--mag-border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.mag-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mag-footer h4 {
    color: var(--mag-text);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.mag-footer p,
.mag-footer a {
    color: var(--mag-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.mag-footer a {
    display: block;
    padding: 0.25rem 0;
    text-decoration: none;
    transition: var(--mag-transition);
}

.mag-footer a:hover {
    color: var(--mag-accent);
    padding-left: 0.3rem;
}

.mag-footer-bottom {
    border-top: 1px solid var(--mag-border);
    padding-top: 1.25rem;
    text-align: center;
    color: var(--mag-text-muted);
    font-size: 0.78rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .mag-main-layout {
        grid-template-columns: 1fr;
    }
    .mag-sidebar {
        position: static;
    }
    .mag-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mag-hero {
        grid-template-columns: 1fr;
    }
    .mag-hero-main {
        min-height: 300px;
    }
    .mag-hero-side {
        flex-direction: row;
    }
    .mag-hero-card {
        min-height: 160px;
    }
    .mag-grid {
        grid-template-columns: 1fr;
    }
    .mag-grid-3 {
        grid-template-columns: 1fr;
    }
    .mag-hero-overlay h2 {
        font-size: 1.3rem;
    }
    .mag-header-inner {
        flex-wrap: wrap;
    }
    .mag-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mag-hero-side {
        flex-direction: column;
    }
    .mag-hero-card .mag-hero-overlay h3 {
        font-size: 0.88rem;
    }
}

/* === Store Section === */
.mag-store-section {
    margin-bottom: 4rem;
    margin-top: 1rem;
}

.mag-store-card {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border: 1px solid var(--mag-border);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mag-store-info {
    flex: 1.2;
    min-width: 300px;
}

.mag-store-badge {
    display: inline-block;
    background: var(--mag-accent-glow);
    color: var(--mag-accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mag-store-info h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.mag-store-info h2 span {
    color: var(--mag-accent);
}

.mag-store-info p {
    color: var(--mag-text-dim);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.mag-store-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.mag-store-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--mag-surface);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--mag-border);
    color: var(--mag-accent);
}

.mag-store-feature-text h4 {
    color: var(--mag-text);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.mag-store-feature-text p {
    color: var(--mag-text-dim);
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.mag-store-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.mag-store-btn-primary {
    background: var(--mag-accent);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px var(--mag-accent-glow);
    transition: var(--mag-transition);
}

.mag-store-btn-secondary {
    background: transparent;
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--mag-border);
    transition: var(--mag-transition);
}

.mag-store-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--mag-accent-glow);
}

.mag-store-btn-secondary:hover {
    background: var(--mag-border);
    transform: translateY(-2px);
}

.mag-store-media {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.mag-store-media::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--mag-accent-glow);
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
}

.mag-store-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
    border: 1px solid var(--mag-border);
}

@media (max-width: 768px) {
    .mag-store-card {
        padding: 2rem;
    }
    .mag-store-info h2 {
        font-size: 1.8rem;
    }
}

/* === Comparison Page Specific === */
.compare-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid #2a2a5a;
    position: relative;
    overflow: hidden;
}
.compare-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.15) 0%, transparent 60%);
}
.compare-hero h1 { color: #fff; position: relative; }
.compare-hero p { color: #aaa; position: relative; }
.vs-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e91e63, #6c63ff);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.compare-card {
    background: var(--mag-card);
    border: 1px solid var(--mag-border);
    border-radius: 14px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.compare-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.compare-card .card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}
.compare-card h3 { color: #e0e0e0; font-size: 1.05rem; margin: 0.5rem 0; line-height: 1.4; }
.compare-card p { color: #888; font-size: 0.9rem; margin: 0.5rem 0; line-height: 1.5; }
.compare-card .card-meta { font-size: 0.8rem; color: #666; margin-top: 1rem; }
.compare-card .brand-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
}
.brand-a { color: #4fc3f7; }
.brand-vs { color: #666; font-size: 0.8rem; }
.brand-b { color: #f48fb1; }
.cat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mag-border);
}
.cat-header h2 { font-size: 1.3rem; margin: 0; }
.cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* === Article & Detail Pages === */
.mag-article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mag-article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #161b22, #0d1117);
    border-radius: 20px;
    border: 1px solid var(--mag-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.mag-article-header .mag-cat {
    background: linear-gradient(90deg, #00b0ff, #00e676);
    color: black;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.mag-article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1.5rem 0;
    color: white;
}

.mag-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--mag-text-muted);
    flex-wrap: wrap;
}

.mag-article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Comparison Versus UI */
.mag-vs-duel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.mag-vs-brand {
    text-align: center;
    padding: 1.25rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--mag-border);
    border-radius: 12px;
    min-width: 180px;
}

.mag-vs-brand.logitech { border-color: #00b0ff; background: rgba(0,176,255,0.05); }
.mag-vs-brand.razer { border-color: #00e676; background: rgba(0,230,118,0.05); }

.mag-vs-brand .name { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.2rem; }
.mag-vs-brand .model { font-size: 0.9rem; opacity: 0.7; }
.mag-vs-divider { font-size: 2rem; font-weight: 900; color: var(--mag-accent); }

/* Article Author Header (New Style) */
/* === Article Body Elements === */
.mag-article-img {
    width: 100%;
    height: auto;
    border-radius: var(--mag-radius);
    margin: 2rem 0;
    display: block;
}

/* Helper Classes for Article Cleanup */
.mag-card-transparent { padding: 0; border: none; background: transparent; }
.mag-cat-accent { background: var(--mag-accent); color: white; }
.mag-article-body-standard { font-size: 1.15rem; line-height: 1.8; color: var(--mag-text-dim); }
.mag-store-card-mt4 { margin-top: 4rem; }
.mag-store-info-min100 { min-width: 100%; }
.mag-store-btn-inline { display: inline-block; }
.mag-sidebar-sticky-100 { position: sticky; top: 100px; }
.mag-cat-wrap-gap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mag-accent-color { color: var(--mag-accent); }

.mag-author-meta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid var(--mag-border);
    border-bottom: 1px solid var(--mag-border);
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mag-author-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mag-author-meta-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--mag-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 10px var(--mag-accent-glow);
}

.mag-author-meta-text {
    font-size: 0.95rem;
    color: var(--mag-text-dim);
}

.mag-author-meta-text b {
    color: white;
    font-weight: 700;
}

.mag-social-share {
    display: flex;
    gap: 0.75rem;
}

.mag-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--mag-transition);
}

.mag-social-btn.fb { background: #3b5998; }
.mag-social-btn.wa { background: #25d366; }
.mag-social-btn.mail { background: #ea4335; }
.mag-social-btn.tg { background: #0088cc; }

.mag-social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Author Box */
.mag-toc {
    background: var(--mag-surface);
    border: 1px solid var(--mag-border);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.mag-toc h2 { font-size: 1.2rem; margin-top: 0; margin-bottom: 1.2rem; color: white; }
.mag-toc ul { margin: 0; padding-left: 1.5rem; }
.mag-toc li { margin-bottom: 0.6rem; color: var(--mag-text-dim); }

.mag-table-wrap { overflow-x: auto; margin: 2rem 0; border-radius: 12px; border: 1px solid var(--mag-border); }
.mag-table { width: 100%; border-collapse: collapse; background: var(--mag-card); }
.mag-table th { background: var(--mag-accent); color: white; padding: 1rem; text-align: left; font-size: 0.9rem; }
.mag-table td { padding: 1rem; border-bottom: 1px solid var(--mag-border); font-size: 0.9rem; color: var(--mag-text-dim); }
.mag-table tr:last-child td { border-bottom: none; }

.mag-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0; }
.mag-pros-box { padding: 1.5rem; background: rgba(0,176,255,0.05); border: 2px solid #00b0ff; border-radius: 15px; }
.mag-cons-box { padding: 1.5rem; background: rgba(0,230,118,0.05); border: 2px solid #00e676; border-radius: 15px; }

.mag-article-footer-box {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--mag-surface);
    border: 1px solid var(--mag-border);
    border-radius: 20px;
    text-align: center;
}

.mag-article-footer-box h3 { margin-top: 0; margin-bottom: 1rem; color: white; }
.mag-article-footer-box p { color: var(--mag-text-dim); margin-bottom: 1.5rem; }

/* Pros/Cons headings */
.mag-pros-box h3 { color: #00b0ff; margin-top: 0; }
.mag-cons-box h3 { color: #00e676; margin-top: 0; }

/* Footer brand icon */
.mag-footer-grid h4 .mag-icon-brand { color: #FF6B35; }

/* === Breadcrumb === */
.mag-breadcrumb { margin-bottom: 1.5rem; }
.mag-breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #5a6b82;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.mag-breadcrumb-list a { color: #8b9ab5; text-decoration: none; }
.mag-breadcrumb-list a:hover { color: #e2e8f0; }
.mag-breadcrumb-list .current { color: #FF6B35; }

/* === Comparison Page Hero === */
.compare-hero {
    background: linear-gradient(135deg, #0f1a2e 0%, #1a0e2e 50%, #0a1420 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 2.5rem 0;
}
.compare-hero-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.compare-hero-icon {
    background: linear-gradient(135deg, #FF6B35, #e04e1a);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 1.4rem;
}
.compare-hero h1 {
    color: #e2e8f0;
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.03em;
}
.compare-hero p {
    color: #8b9ab5;
    margin: 0.3rem 0 0;
    font-size: 1rem;
}

/* Section dot color variants */
.dot.dot-blue { background: #3b82f6; }
.dot.dot-green { background: #10b981; }
.dot.dot-red { background: #ef4444; }
.dot.dot-purple { background: #8b5cf6; }
.dot.dot-cyan { background: #06b6d4; }
.dot.dot-orange { background: #f59e0b; }

/* === CTA Banner === */
.compare-cta-box {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1028, #0f1a2e);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    text-align: center;
}
.compare-cta-box h3 { color: #e2e8f0; margin: 0 0 0.5rem; }
.compare-cta-box .cta-icon { color: #8b5cf6; }
.compare-cta-box p { color: #8b9ab5; margin: 0 0 1rem; font-size: 0.9rem; }
.compare-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.compare-cta-btn:hover { opacity: 0.9; }

/* === Tag Cloud (Sidebar) === */
.mag-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mag-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

/* === Sidebar Simulasi Box === */
.mag-sidebar-simulasi {
    background: linear-gradient(135deg, #1a1028, #0f1a2e);
    border-color: rgba(139, 92, 246, 0.2);
}
.mag-sidebar-simulasi h3 { border-bottom-color: #8b5cf6; }
.mag-sidebar-simulasi p { color: #8b9ab5; font-size: 0.85rem; margin: 0 0 1rem; }
.mag-sidebar-simulasi .compare-cta-btn { display: block; text-align: center; }

/* === Table Utilities === */
.mag-table .text-center { text-align: center; }
.mag-table .fw-bold { font-weight: 700; }

/* === Body base for magazine pages === */
body.mag-page {
    background: #0a0e14;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* Article container top spacing */
.mag-article-container { padding-top: 2rem; }

/* Container top spacing utility */
.mag-pt-md { padding-top: 1.5rem; }

@media (max-width: 768px) {
    .mag-article-header h1 { font-size: 1.8rem; }
    .mag-pros-cons { grid-template-columns: 1fr; }
    .mag-vs-duel { gap: 1rem; }
    .compare-hero h1 { font-size: 1.5rem; }
    .compare-hero-inner { gap: 0.75rem; }
}


/* --- Premium Footer Design 2026 --- */
.mag-footer {
    background: #080a0f;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 100px;
}

.mag-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.mag-footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mag-footer-col h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--mag-accent);
    display: inline-block;
    border-radius: 2px;
}

.mag-footer-desc {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.mag-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mag-footer-links li {
    margin-bottom: 14px;
}

.mag-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mag-footer-links a i {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mag-footer-links a:hover {
    color: var(--mag-accent);
    transform: translateX(8px);
}

.mag-footer-links a:hover i {
    opacity: 1;
    color: var(--mag-accent);
}

.mag-footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--mag-accent);
    border-color: var(--mag-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.mag-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .mag-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .mag-footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 640px) {
    .mag-footer-grid { grid-template-columns: 1fr; }
    .mag-footer-col:first-child { grid-column: span 1; }
    .mag-footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--mag-accent);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ff8c5a;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* --- Dynamic Scrolling Ticker --- */
.mag-ticker-inner {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

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

.mag-ticker:hover .mag-ticker-inner {
    animation-play-state: paused;
}

/* --- Premium Card & Image Hover Effects --- */
.mag-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.mag-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
    border-color: var(--mag-accent) !important;
}

.mag-card img {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* --- Glow effect for featured categories --- */
.mag-cat {
    transition: all 0.3s ease;
}

.mag-card:hover .mag-cat {
    box-shadow: 0 0 15px var(--mag-accent);
}

/* ============================================================
   MOBILE FRIENDLY - COMPREHENSIVE RESPONSIVE UPGRADE 2026
   Breakpoints: 480px (phone), 640px (large phone), 768px (tablet), 1024px (small laptop)
   ============================================================ */

/* === GLOBAL MOBILE BASE === */
@media (max-width: 768px) {
    /* Header */
    .mag-header { padding: 0.75rem 0; }
    .mag-header-inner { flex-wrap: wrap; gap: 0.5rem; }
    .mag-logo-name { font-size: 1.1rem; }
    .mag-logo-tagline { font-size: 0.65rem; }
    .mag-date { font-size: 0.75rem; }
    .mag-logo-icon { width: 34px; height: 34px; font-size: 0.9rem; }

    /* Navigation Hamburger */
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #0d1117;
        border-bottom: 2px solid var(--mag-accent);
        box-shadow: 0 10px 40px rgba(0,0,0,0.7);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .mag-nav a {
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.95rem;
        width: 100%;
    }
    .nav-separator { display: none !important; }

    /* Ticker */
    .mag-ticker { font-size: 0.75rem; }

    /* Hero/Featured */
    .mag-featured { grid-template-columns: 1fr !important; }
    .mag-featured-main { grid-column: span 1 !important; }
    .mag-article-img { height: 200px !important; }

    /* Article Grid */
    .mag-grid { grid-template-columns: 1fr !important; }
    .mag-grid-3 { grid-template-columns: 1fr !important; }
    .mag-grid-2 { grid-template-columns: 1fr !important; }

    /* Article Body */
    .mag-article-header h1 { font-size: 1.6rem; line-height: 1.3; }
    .mag-article-meta { flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }
    .mag-article-body { font-size: 1rem; line-height: 1.8; }
    .mag-article-body h2 { font-size: 1.3rem; }
    .mag-article-body h3 { font-size: 1.1rem; }

    /* Sidebar */
    .mag-sidebar-layout { grid-template-columns: 1fr !important; }
    .mag-sidebar { order: 2; }

    /* Cards */
    .mag-card-img { height: 180px; }
    .mag-card-body { padding: 1rem; }
    .mag-card-title { font-size: 1rem; }

    /* Containers */
    .mag-container { padding-left: 1rem; padding-right: 1rem; }

    /* Store section */
    .mag-store-inner { flex-direction: column !important; gap: 1.5rem !important; }
    .mag-store-media { width: 100% !important; }

    /* Comparison */
    .mag-vs-duel { flex-direction: column; gap: 1rem; }
    .compare-hero h1 { font-size: 1.4rem; }
    .compare-hero-inner { flex-direction: column; gap: 1rem; }
    .mag-pros-cons { grid-template-columns: 1fr; }

    /* Section headings */
    .mag-section-title { font-size: 1.2rem; }
    .mag-section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    /* Footer */
    .mag-footer { padding: 50px 0 30px; }
    .mag-footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .mag-footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .mag-footer-links a { justify-content: center; }
    .mag-footer-social { justify-content: center; }
    .mag-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* Back to Top */
    .back-to-top { bottom: 20px; right: 16px; width: 44px; height: 44px; font-size: 1rem; }

    /* Tools pages */
    .form-grid { grid-template-columns: 1fr !important; }
    .fps-cards { grid-template-columns: 1fr 1fr !important; }
    .info-grid { grid-template-columns: 1fr !important; }
    .fps-card .fps-val { font-size: 2.5rem; }
    .result-watt { font-size: 3rem !important; }
    .psu-options { flex-direction: column; align-items: center; gap: 1rem; }
    .tool-section { padding: 1.25rem; }
    h1[style*="2.5rem"] { font-size: 1.8rem !important; }

    /* Tables responsive */
    .game-table { font-size: 0.8rem; }
    .game-table th, .game-table td { padding: 0.6rem 0.5rem; }
    .breakdown-table th, .breakdown-table td { padding: 0.6rem 0.5rem; font-size: 0.85rem; }
}

/* === SMALL PHONE (< 480px) === */
@media (max-width: 480px) {
    .mag-logo-name { font-size: 1rem; }
    .mag-article-header h1 { font-size: 1.4rem; }
    .fps-cards { grid-template-columns: 1fr !important; }
    .fps-card .fps-val { font-size: 2.2rem; }
    .game-table { display: block; overflow-x: auto; white-space: nowrap; }
    .mag-container { padding-left: 0.75rem; padding-right: 0.75rem; }
    h1[style*="2.5rem"] { font-size: 1.5rem !important; }
    .mag-card-body { padding: 0.75rem; }
    .tool-section { padding: 1rem; }
    .btn-calc, .btn-calculate { font-size: 1rem; padding: 1rem; }
}

/* === TABLET (768px - 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
    .mag-featured { grid-template-columns: 1fr 1fr !important; }
    .mag-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .mag-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .mag-footer-grid { grid-template-columns: 1fr 1fr; }
    .mag-footer-col:first-child { grid-column: span 2; }
    .form-grid { grid-template-columns: 1fr 1fr; }
}
