/* ═══════════════════════════════════════════════
   INDIR.ME — Curated Tech Theme
   Typography: Outfit (display) + DM Sans (body)
   ═══════════════════════════════════════════════ */

/* ========== Design Tokens ========== */
:root {
    /* Brand */
    --accent: #e8750a;
    --accent-hover: #cf6808;
    --accent-light: #fff6ed;
    --accent-glow: rgba(232, 117, 10, 0.2);
    --accent-gradient: linear-gradient(135deg, #e8750a 0%, #ff9d3d 100%);

    /* Surfaces */
    --surface: #ffffff;
    --surface-raised: #f8f9fb;
    --surface-hover: #f3f4f6;
    --bg: #f0f2f5;
    --bg-dot: radial-gradient(circle, #d1d5db 1px, transparent 1px);

    /* Text */
    --text: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Borders */
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --border-focus: var(--accent);

    /* Status */
    --success: #059669;
    --success-light: #ecfdf5;
    --info: #2563eb;
    --info-light: #eff6ff;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;

    /* Layout */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-accent: 0 4px 20px rgba(232, 117, 10, 0.3);

    /* Typography */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.2s;
    --duration-md: 0.3s;
    --duration-lg: 0.5s;

    /* Z-index */
    --z-header: 100;
    --z-dropdown: 200;
    --z-overlay: 500;
    --z-modal: 1000;
}

/* ========== Reset ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-optical-sizing: auto;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.85rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

small { font-size: 0.85em; }

button {
    font-family: var(--font-body);
    cursor: pointer;
}

/* ========== Layout ========== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content { flex: 1; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow { max-width: 960px; }
.container--wide { max-width: 1440px; }

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--surface);
    transition: box-shadow var(--duration-md) var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.07);
}

.header-accent {
    height: 3px;
    background: var(--accent-gradient);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 72px;
    gap: 24px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 64px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
}

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

/* Header Search */
.header-search {
    flex: 1;
    max-width: 440px;
}

.header-search__form {
    display: flex;
    align-items: center;
    position: relative;
    background: var(--surface-raised);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 14px;
    transition: all var(--duration) var(--ease);
}

.header-search__form:focus-within {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-search__icon {
    flex-shrink: 0;
    color: var(--text-muted);
    pointer-events: none;
}

.header-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: transparent;
}

.header-search__input::placeholder {
    color: var(--text-muted);
}

.header-search__shortcut {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-muted);
    pointer-events: none;
}

/* Nav */
.main-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
}

.main-nav li a {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li.current-menu-item a,
.main-nav li.current_page_parent > a {
    color: var(--text);
    background: var(--surface-hover);
}

/* ── Submenu (Desktop) ── */
.main-nav li {
    position: relative;
}

.main-nav .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--duration-md) var(--ease);
    z-index: var(--z-dropdown);
    flex-direction: column;
    gap: 0;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 0;
    white-space: nowrap;
}

.main-nav .sub-menu li a:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.main-nav .sub-menu .sub-menu {
    top: -6px;
    left: 100%;
}

/* Arrow for parent items */
.main-nav > ul > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.4;
    transition: transform var(--duration) var(--ease);
}

.main-nav > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
    opacity: 1;
}

.main-nav .sub-menu li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    opacity: 0.4;
}

/* Mobile actions (hidden on desktop) */
.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.mobile-search-toggle:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* Hamburger */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
}

.menu-toggle:hover { background: var(--surface-hover); }

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--duration-md) var(--ease);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile search bar */
.mobile-search {
    display: none;
    border-top: 1px solid var(--border);
    padding: 12px 0;
    background: var(--surface-raised);
}

.mobile-search.active {
    display: block;
    animation: slideDown var(--duration-md) var(--ease-spring);
}

.mobile-search__form {
    display: flex;
    gap: 8px;
}

.mobile-search__form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background: var(--surface);
}

.mobile-search__form input[type="search"]:focus {
    border-color: var(--accent);
}

.mobile-search__form button {
    flex-shrink: 0;
    padding: 12px 20px;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 72px 0 84px;
    background: var(--text);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(232, 117, 10, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgba(255, 157, 61, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--bg-dot);
    background-size: 24px 24px;
    opacity: 0.06;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.hero__title {
    color: var(--text-inverse);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    line-height: 1.15;
}

.hero__title em {
    font-style: normal;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Hero Search */
.hero__search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.hero__search-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 6px;
    backdrop-filter: blur(12px);
    transition: all var(--duration-md) var(--ease);
}

.hero__search-wrap:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: rgba(232, 117, 10, 0.4);
    box-shadow: 0 0 0 4px rgba(232, 117, 10, 0.1);
}

.hero__search-icon {
    display: flex;
    align-items: center;
    padding: 0 4px 0 14px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.hero__search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-inverse);
    background: transparent;
}

.hero__search-input::placeholder {
    color: rgba(255,255,255,0.35);
}

@media (max-width: 480px) {
    .hero__search-input {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    .hero__search-input::placeholder {
        font-size: 0.85rem;
    }
}

.hero__search-btn {
    flex-shrink: 0;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    padding: 12px 28px;
    border-radius: calc(var(--radius-lg) - 4px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--duration) var(--ease);
}

.hero__search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Hero Search Results */
.hero__search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: none;
    z-index: var(--z-dropdown);
    max-height: 380px;
    overflow-y: auto;
}

.hero__search-results.active {
    display: block;
    animation: slideDown var(--duration-md) var(--ease-spring);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background var(--duration) var(--ease);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-light); }

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-raised);
}

.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-title { font-weight: 600; font-size: 0.92rem; }
.search-result-item .sr-cat { font-size: 0.78rem; color: var(--text-muted); }

/* Hero Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-inverse);
}

.hero__stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* ========== Section Titles ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    margin-top: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.section-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--duration) var(--ease);
}

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

.page-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 24px 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-content .page-title {
    margin-top: 0;
}

.page-content .entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content .entry-content a:hover {
    color: var(--accent-hover);
}

/* ========== Category Grid ========== */
.categories-section {
    padding: 48px 0 16px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all var(--duration) var(--ease);
    min-height: 64px;
}

.category-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-card__icon {
    font-size: 20px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-raised);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: background var(--duration) var(--ease);
}

.category-card:hover .category-card__icon {
    background: rgba(232, 117, 10, 0.1);
}

.category-card__text {
    min-width: 0;
    flex: 1;
}

.category-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.84rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

.category-card__count {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ========== Program Grid ========== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.program-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

/* ========== Program Card ========== */
.program-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--duration-md) var(--ease);
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity var(--duration-md) var(--ease);
    pointer-events: none;
}

.program-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
}

.program-card:hover::after {
    opacity: 1;
}

.program-card > a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    text-decoration: none;
    color: var(--text);
}

.program-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.program-card__icon img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.program-card__placeholder {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
}

.program-card__body {
    flex: 1;
    min-width: 0;
}

.program-card__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.program-card__developer {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.program-card__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.program-card__category {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ========== Badges ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge--version { background: var(--info-light); color: var(--info); }
.badge--size { background: var(--surface-raised); color: var(--text-secondary); }
.badge--license { background: var(--warning-light); color: var(--warning); }
.badge--platform { background: #f3e8ff; color: #7c3aed; }
.badge--safe { background: var(--success-light); color: var(--success); }
.badge--turkish { background: #fce7f3; color: #be185d; }
.badge--opensource { background: var(--success-light); color: var(--success); }
.badge--free { background: var(--accent-light); color: var(--accent); }

.badge--platform svg { flex-shrink: 0; }

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ========== Single Program ========== */
.program-page {
    padding: 24px 0 60px;
}

.program-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* Program Header Card */
.program-header {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
}

.program-header__top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.program-header__icon {
    flex-shrink: 0;
}

.program-header__icon img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.program-header__placeholder--large {
    width: 80px;
    height: 80px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
}

.program-header__info {
    flex: 1;
    min-width: 0;
}

.program-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.program-header__developer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.program-header__developer a {
    color: var(--accent);
    font-weight: 500;
}

.program-header__badges {
    margin-bottom: 0;
}

.program-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--text-inverse) !important;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}

.btn-download:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232, 117, 10, 0.35);
    color: var(--text-inverse) !important;
}

.btn-download:hover::before {
    transform: translateX(100%);
}

.btn-download svg { flex-shrink: 0; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--surface);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text);
    background: var(--surface-hover);
}

/* Sidebar */
.program-sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.sidebar-card + .sidebar-card {
    margin-top: 16px;
}

.sidebar-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-card__body {
    padding: 16px 20px;
}

/* Info List in Sidebar */
.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

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

.info-list__label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-list__value {
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.info-list__value--safe { color: var(--success); }
.info-list__value--warning { color: var(--warning); }

/* Sidebar Download */
.sidebar-download {
    padding: 20px;
}

.sidebar-download .btn-download {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
}

.sidebar-download .btn-secondary {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* ========== Tabs ========== */
.program-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-top: 28px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.program-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 14px 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    padding: 24px 0;
    animation: fadeIn var(--duration-md) var(--ease);
}

.tab-content.active { display: block; }

.content-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    line-height: 1.8;
}

.content-card h2, .content-card h3 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.content-card h2:first-child, .content-card h3:first-child {
    margin-top: 0;
}

.content-card p { margin-bottom: 14px; }

.content-card ul, .content-card ol {
    margin-left: 20px;
    margin-bottom: 14px;
}

.content-card li { margin-bottom: 4px; }

/* ========== Pros & Cons ========== */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.pros-card, .cons-card {
    border-radius: var(--radius);
    padding: 20px;
}

.pros-card {
    background: var(--success-light);
    border: 1px solid #a7f3d0;
}

.cons-card {
    background: var(--danger-light);
    border: 1px solid #fecaca;
}

.pros-card__title, .cons-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pros-card__title { color: var(--success); }
.cons-card__title { color: var(--danger); }

.pros-card ul, .cons-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros-card li, .cons-card li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pros-card li::before {
    content: '+';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--success);
}

.cons-card li::before {
    content: '\2212';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--danger);
}

/* ========== Changelog ========== */
.changelog-list {
    list-style: none;
}

.changelog-item {
    position: relative;
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: none; }

.changelog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.changelog-item::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.changelog-item:last-child::after { display: none; }

.changelog-version {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}

.changelog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.changelog-changes {
    list-style: disc;
    margin: 8px 0 0 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.changelog-changes li {
    margin-bottom: 3px;
}

/* ========== FAQ Accordion ========== */
.faq-list {
    list-style: none;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color var(--duration) var(--ease);
}

.faq-question:hover { color: var(--accent); }

.faq-question__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-raised);
    transition: all var(--duration-md) var(--ease);
}

.faq-item.active .faq-question__icon {
    background: var(--accent-light);
    color: var(--accent);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-md) var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer__inner {
    padding: 0 0 18px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== Screenshot Gallery ========== */
.program-gallery {
    margin-top: 24px;
}

.program-gallery h3 {
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform var(--duration-md) var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-md) var(--ease);
    backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ========== Video Section ========== */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========== Related Programs ========== */
.related-programs {
    margin-top: 40px;
}

.related-programs h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
}

/* ========== Breadcrumbs ========== */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs .sep {
    margin: 0 8px;
    color: var(--border-strong);
    font-size: 0.7rem;
}

.breadcrumbs span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========== Search Page ========== */
.search-form {
    margin: 20px 0;
}

.search-form__wrap {
    display: flex;
    max-width: 540px;
}

.search-form__input {
    flex: 1;
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.search-form__input:focus {
    border-color: var(--accent);
}

.search-form__btn {
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    padding: 14px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}

.search-form__btn:hover { background: var(--accent-hover); }

/* ========== No Results / 404 ========== */
.no-results, .not-found {
    text-align: center;
    padding: 80px 20px;
}

.not-found__code {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.not-found p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ========== Pagination ========== */
.pagination, .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-numbers.current {
    background: var(--accent);
    color: var(--text-inverse);
    border-color: var(--accent);
}

/* ========== Term Description ========== */
.term-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    max-width: 720px;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.5);
    padding: 56px 0 0;
    margin-top: 60px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about {
    max-width: 280px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.footer-logo-text span { color: var(--accent); }

.footer-about p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    transition: color var(--duration) var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 40px;
    padding: 20px 0 16px;
    font-size: 0.75rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.35);
}

.footer-disclaimer a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 16px 0;
    text-align: center;
    font-size: 0.78rem;
}

.footer-bottom a { color: var(--accent); }

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--duration-md) var(--ease);
    z-index: 50;
}

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

.back-to-top:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ========== Trust Badges Row ========== */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
}

.trust-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.trust-badge--neutral { color: var(--text-muted); }

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: slideUp var(--duration-lg) var(--ease) both;
}

.animate-in:nth-child(1) { animation-delay: 0s; }
.animate-in:nth-child(2) { animation-delay: 0.05s; }
.animate-in:nth-child(3) { animation-delay: 0.1s; }
.animate-in:nth-child(4) { animation-delay: 0.15s; }
.animate-in:nth-child(5) { animation-delay: 0.2s; }
.animate-in:nth-child(6) { animation-delay: 0.25s; }
.animate-in:nth-child(7) { animation-delay: 0.3s; }
.animate-in:nth-child(8) { animation-delay: 0.35s; }

/* ========== Archive Page ========== */
.archive-page {
    padding: 24px 0 60px;
}

.archive-header {
    margin-bottom: 24px;
}

.archive-header__title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.archive-header__count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.archive-header__count strong {
    color: var(--accent);
    font-weight: 700;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.filter-select select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 32px 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text);
    background: var(--surface) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer;
    transition: border-color var(--duration) var(--ease);
    min-width: 0;
}

.filter-select select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.filter-select select:hover {
    border-color: var(--border-strong);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration) var(--ease);
    color: var(--text-muted);
}

.filter-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.filter-search input {
    border: none;
    outline: none;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text);
    background: transparent;
    width: 120px;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    border: none;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.view-toggle__btn:first-child {
    border-right: 1px solid var(--border);
}

.view-toggle__btn.active,
.view-toggle__btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.active-filters__label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.active-filters__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 10px;
    background: var(--accent-light);
    border: 1px solid rgba(232, 117, 10, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--accent);
}

.filter-tag__label {
    font-weight: 600;
}

.filter-tag button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(232, 117, 10, 0.15);
    border-radius: 50%;
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--duration) var(--ease);
}

.filter-tag button:hover {
    background: var(--accent);
    color: white;
}

.active-filters__clear {
    border: none;
    background: none;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.active-filters__clear:hover {
    color: var(--danger);
}

/* Archive Layout */
.archive-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.archive-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.sidebar-widget__title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border);
}

/* Category Nav */
.category-nav {
    list-style: none;
    padding: 6px 0;
    max-height: 400px;
    overflow-y: auto;
}

.category-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    border-left: 3px solid transparent;
}

.category-nav li a:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.category-nav li.active a {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.category-nav .count,
.platform-nav .count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-raised);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
}

.category-nav li.active .count {
    background: rgba(232, 117, 10, 0.15);
    color: var(--accent);
}

/* Platform Nav */
.platform-nav {
    list-style: none;
    padding: 6px 0;
}

.platform-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 0.84rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.platform-nav a:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.platform-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.platform-nav a svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.platform-nav a:hover svg,
.platform-nav a.active svg {
    opacity: 1;
}

.platform-nav .count {
    margin-left: auto;
}

/* List View */
.program-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.program-list .program-card {
    border-radius: var(--radius);
}

.program-list .program-card > a {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
}

.program-list .program-card__icon,
.program-list .program-card__icon img {
    width: 44px;
    height: 44px;
}

.program-list .program-card__placeholder {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
}

.program-list .program-card__body {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.program-list .program-card__title {
    min-width: 180px;
    margin-bottom: 0;
}

.program-list .program-card__developer {
    margin-bottom: 0;
    min-width: 120px;
}

.program-list .program-card__meta {
    margin-left: auto;
}

/* Transition for results loading */
#program-results {
    transition: opacity var(--duration-md) var(--ease);
}

/* ========== Platform Pills ========== */
.platform-section { padding: 20px 0 0; }

.platform-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--duration) var(--ease);
}

.platform-pill:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.platform-pill__count {
    font-size: 0.72rem;
    background: var(--surface-raised);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.platform-pill:hover .platform-pill__count {
    background: rgba(232,117,10,0.15);
    color: var(--accent);
}

/* ========== Featured Card ========== */
.featured-section { padding: 16px 0; }

.featured-card {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all var(--duration-md) var(--ease);
}

.featured-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.featured-card__img {
    width: 280px;
    flex-shrink: 0;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card__placeholder {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
}

.featured-card__body {
    padding: 28px 32px;
    flex: 1;
}

.featured-card__badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.featured-card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.featured-card__dev {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: block;
    margin-bottom: 10px;
}

.featured-card__desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.featured-card__cta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
    margin-top: 8px;
    display: inline-block;
}

/* ========== Gems Section ========== */
.gems-section {
    padding: 0;
    margin: 40px 0;
}

.gems-section .section-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gem-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--duration) var(--ease);
}

.gem-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.gem-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent);
}

.gem-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.gem-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ========== Latest List ========== */
.latest-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.latest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background var(--duration) var(--ease);
}

.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: var(--accent-light); }

.latest-item__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
}

.latest-item__icon img { width: 32px; height: 32px; object-fit: cover; }

.latest-item__name {
    flex: 1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.latest-item__cat {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 120px;
}

.latest-item__ver {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    min-width: 60px;
}

.latest-item__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

/* ========== Trust Section ========== */
.trust-section {
    padding: 40px 0;
    background: var(--surface-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: -60px;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.trust-item svg { flex-shrink: 0; color: var(--accent); }
.trust-item strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 0.9rem; }
.trust-item span { font-size: 0.78rem; }

/* ========== Star Rating ========== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
}

.star-rating__score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin-left: 6px;
}

.star-rating__count {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Star Rating Input (comment form) */
.comment-rating-field { margin-bottom: 16px; }
.comment-rating-field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
    justify-content: flex-end;
}

.star-rating-input input { display: none; }

.star-rating-input label {
    cursor: pointer;
    color: #d1d5db;
    transition: color var(--duration) var(--ease);
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #f59e0b;
}

/* Program Header Rating */
.program-header__rating {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-header__review-link {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========== Comments/Reviews ========== */
.program-reviews { margin-top: 40px; }

.program-reviews__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-item {
    margin-bottom: 0;
    padding: 0;
}

.comment-item__inner {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child .comment-item__inner { border-bottom: none; }

.comment-item__avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-item__body { flex: 1; }

.comment-item__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-item__author {
    font-family: var(--font-display);
    font-size: 0.88rem;
}

.comment-item__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.comment-item__content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-item__content .star-rating { margin-bottom: 6px; }

.comment-item__reply a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

.comment-item__reply a:hover { color: var(--accent); }

/* Comment Form */
.comment-form label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 14px;
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.comment-form .form-submit { margin-top: 8px; }

/* Responsive */
@media (max-width: 768px) {
    .featured-card { flex-direction: column; }
    .featured-card__img { width: 100%; height: 200px; }
    .featured-card__body { padding: 20px; }
    .gems-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { gap: 24px; }
    .latest-item__cat, .latest-item__ver { display: none; }
    .platform-pills { gap: 8px; }
    .platform-pill { padding: 8px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .trust-grid { flex-direction: column; gap: 16px; }
    .latest-item__date { display: none; }
}

/* ========== Blog ========== */

/* Blog Page (listing) */
.blog-page { padding: 32px 0 60px; }

.blog-page__header { margin-bottom: 32px; }

.blog-page__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.blog-page__desc {
    color: var(--text-secondary);
    margin-top: 6px;
}

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

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: all var(--duration-md) var(--ease);
}

.blog-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card__img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-raised);
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-md) var(--ease);
}

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

.blog-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.blog-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__cat {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
}

.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.blog-card__date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Blog Single */
.blog-single { padding: 24px 0 60px; }

.blog-article {
    max-width: 900px;
    margin: 0 auto;
}

.blog-article__header { margin-bottom: 28px; }

.blog-article__cats {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.blog-cat-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-light);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    text-decoration: none;
}

.blog-cat-badge:hover {
    background: var(--accent);
    color: white;
}

.blog-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.blog-article__meta time,
.blog-article__reading {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Cover Image */
.blog-article__cover {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-article__cover img {
    width: 100%;
    height: auto;
}

/* Content */
.blog-article__content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}

.blog-article__content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.blog-article__content h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.blog-article__content p { margin-bottom: 20px; }

.blog-article__content ul,
.blog-article__content ol {
    margin: 0 0 20px 24px;
}

.blog-article__content li { margin-bottom: 8px; }

.blog-article__content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.blog-article__content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-article__content pre {
    background: var(--text);
    color: #e5e7eb;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-article__content code {
    background: var(--surface-raised);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-article__content pre code {
    background: none;
    padding: 0;
}

.blog-article__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.blog-article__content th,
.blog-article__content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
    font-size: 0.9rem;
}

.blog-article__content th {
    background: var(--surface-raised);
    font-weight: 600;
}

/* Tags */
.blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.blog-tag {
    padding: 5px 12px;
    background: var(--surface-raised);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.blog-tag:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Share */
.blog-article__share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.blog-article__share-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-size: 0.75rem;
}

.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn--twitter:hover { background: #1da1f2; color: white; border-color: #1da1f2; }
.share-btn--facebook:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-btn--whatsapp:hover { background: #25d366; color: white; border-color: #25d366; }

/* Author */
.blog-article__author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 20px;
    background: var(--surface-raised);
    border-radius: var(--radius);
}

.blog-article__author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.blog-article__author-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
}

.blog-article__author-bio {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Related Posts */
.blog-related {
    max-width: 900px;
    margin: 48px auto 0;
}

.blog-related__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.blog-related__grid .blog-card__title {
    font-size: 0.92rem;
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-related__grid {
        grid-template-columns: 1fr;
    }

    .blog-article__title {
        font-size: 1.5rem;
    }

    .blog-article__content {
        font-size: 1rem;
    }

    .blog-article__share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-card__body {
        padding: 14px 16px 16px;
    }

    .blog-article__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ========== Download Wait Overlay ========== */
.download-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.download-overlay.active {
    display: flex;
    animation: fadeIn var(--duration-md) var(--ease);
}

.download-overlay__box {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.download-overlay__icon {
    color: var(--accent);
    margin-bottom: 16px;
    animation: bounceDown 1s var(--ease) infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.download-overlay__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.download-overlay__timer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.download-overlay__progress {
    flex: 1;
    height: 8px;
    background: var(--surface-raised);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.download-overlay__bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 1s linear;
}

.download-overlay__seconds {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    min-width: 28px;
}

.download-overlay__info {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.download-overlay__ad {
    min-height: 100px;
    background: var(--surface-raised);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.download-overlay__ad:empty::after { content: ''; }

.download-overlay__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--duration) var(--ease);
}

.download-overlay__close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* ========== WordPress Admin Bar Fix ========== */
.admin-bar .site-header { top: 32px; }
.admin-bar .main-nav { top: calc(100% + 32px); }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar .main-nav { top: 100%; }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .program-layout {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        order: -1;
    }

    .sidebar-card + .sidebar-card { margin-top: 0; }

    .archive-layout {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner { gap: 12px; height: 60px; }

    /* Archive responsive */
    .archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        order: -1;
    }

    .archive-sidebar .sidebar-widget { margin-bottom: 0; }

    .category-nav { max-height: 200px; }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar__filters { flex-wrap: wrap; }

    .filter-bar__actions { justify-content: space-between; }

    .filter-select select { font-size: 0.8rem; padding: 7px 28px 7px 10px; }

    .filter-search input { width: 100px; }

    .program-list .program-card__body {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .program-list .program-card__title { min-width: 0; }
    .program-list .program-card__developer { min-width: 0; }
    .program-list .program-card__meta { margin-left: 0; }

    .site-logo img { height: 48px; }
    .logo-text { font-size: 1.8rem; }

    .header-search { display: none; }
    .header-mobile-actions { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 8px 0;
        z-index: var(--z-dropdown);
    }

    .main-nav.active { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 24px;
    }

    .main-nav li a {
        display: block;
        padding: 13px 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
        font-size: 0.92rem;
    }

    /* Mobile submenu overrides */
    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: 0;
        padding: 0;
        display: none;
        background: transparent;
    }

    .main-nav li.submenu-open > .sub-menu {
        display: block;
    }

    .main-nav .sub-menu li a {
        padding: 11px 0 11px 20px;
        font-size: 0.85rem;
        border-top: 1px solid var(--border);
        color: var(--text-secondary);
    }

    .main-nav .sub-menu .sub-menu li a {
        padding-left: 36px;
    }

    .main-nav > ul > li.menu-item-has-children > a::after {
        border-top: 5px solid currentColor;
        margin-left: 8px;
    }

    .main-nav li.submenu-open > a::after {
        transform: rotate(180deg) !important;
    }

    .hero { padding: 48px 0 56px; }
    .hero__title { font-size: 1.8rem; }
    .hero__badge { font-size: 0.75rem; }
    .hero__desc { font-size: 0.95rem; }

    .hero__search-wrap {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .hero__search-icon { display: none; }

    .hero__search-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .hero__search-btn {
        border-radius: 0 0 var(--radius) var(--radius);
        width: 100%;
        padding: 14px;
    }

    .hero__search {
        max-width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .site-logo img { height: 48px; }
    .logo-text { font-size: 1.8rem; }

    .program-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .program-header__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .program-header__actions {
        flex-direction: column;
    }

    .program-header__actions .btn-download,
    .program-header__actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .program-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-about { max-width: 100%; }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .archive-sidebar {
        grid-template-columns: 1fr;
    }

    .filter-bar__filters {
        flex-direction: column;
        width: 100%;
    }

    .filter-select { width: 100%; }
    .filter-select select { width: 100%; }
    .filter-search { width: 100%; }
    .filter-search input { width: 100%; flex: 1; }

    .view-toggle { display: none; }

    .archive-header__title { font-size: 1.4rem; }

    .program-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .program-card > a {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .program-card__icon, .program-card__icon img {
        width: 44px;
        height: 44px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .category-card {
        padding: 10px 12px;
        gap: 8px;
    }

    .category-card__icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .category-card__name {
        font-size: 0.78rem;
    }

    .category-card__count {
        font-size: 0.68rem;
    }

    .footer-grid { grid-template-columns: 1fr; }

    .header-inner { height: 56px; }
    .site-logo img { height: 44px; }
    .logo-text { font-size: 1.6rem; }

    .hero { padding: 36px 0 44px; }
    .hero__title { font-size: 1.5rem; }
    .hero__desc { font-size: 0.88rem; margin-bottom: 24px; }

    .program-header { padding: 18px; }
    .program-header__title { font-size: 1.2rem; }
    .program-header__icon img,
    .program-header__placeholder--large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .btn-download { padding: 12px 20px; font-size: 0.9rem; }
    .btn-secondary { padding: 12px 16px; font-size: 0.82rem; }

    .tab-btn { padding: 12px 14px; font-size: 0.82rem; }
    .content-card { padding: 18px; }

    .sidebar-card__body { padding: 12px 16px; }
    .sidebar-card__header { padding: 12px 16px; font-size: 0.78rem; }
    .info-list li { font-size: 0.82rem; padding: 8px 0; }

    .breadcrumbs { font-size: 0.75rem; padding: 12px 0; }

    .section-title { font-size: 1.15rem; }
    .section-header { margin-top: 32px; margin-bottom: 16px; }

    .program-sidebar {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gallery-item img { height: 100px; }

    .not-found__code { font-size: 4rem; }

    .back-to-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
}
