/*
Theme Name: MacAura
Theme URI: https://example.com/macaura
Author: MacAura
Author URI: https://example.com
Description: A dark, dashboard-style WordPress theme built for Mac games & software download sites. Logo and cover images are managed through the WordPress Media Library (Customizer > Site Identity, and Featured Image on each post).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: macaura
*/

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

:root{
  --bg: #0B0D12;
  --surface: #14171F;
  --surface-2: #1B1F29;
  --border: #262B37;
  --text: #F1F2F5;
  --text-dim: #8B93A6;
  --text-faint: #545D70;
  --accent-a: #5B7CFF;
  --accent-b: #8B5CF6;
  --lime: #C6FF3D;
  --danger: #FF6B6B;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family:'Inter', sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.brand,.nav-label,.stat-value{ font-family:'Space Grotesk', sans-serif; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; }

/* ---------- Shell layout ---------- */
.shell{ display:grid; grid-template-columns:232px 1fr 296px; min-height:100vh; }
@media (max-width:1180px){
  .shell{ grid-template-columns:88px 1fr 296px; }
  .nav-label, .brand-name, .plan-card{ display:none; }
}
@media (max-width:900px){
  .shell{ grid-template-columns:1fr; }
  .sidebar, .rightpanel{ display:none; }
}

/* ---------- Sidebar ---------- */
.sidebar{ background:var(--surface); border-right:1px solid var(--border); padding:28px 18px; display:flex; flex-direction:column; gap:34px; }
.brand{ display:flex; align-items:center; gap:10px; font-size:18px; font-weight:700; letter-spacing:-0.01em; padding:0 8px; }
.brand img.custom-logo{ width:26px; height:26px; border-radius:8px; object-fit:cover; flex-shrink:0; }
.brand .dot-mark{ width:26px; height:26px; border-radius:8px; background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.brand .dot-mark svg{ width:14px; height:14px; }

.nav-group{ display:flex; flex-direction:column; gap:4px; }
.nav-title{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); font-weight:600; padding:4px 12px 8px; }
.nav-item{ display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:var(--radius-sm); color:var(--text-dim); font-size:14.5px; font-weight:500; transition:background .15s, color .15s; }
.nav-item svg{ width:18px; height:18px; flex-shrink:0; opacity:.9; }
.nav-item:hover{ background:var(--surface-2); color:var(--text); }
.nav-item.active, .nav-item.current-menu-item{ background:linear-gradient(135deg, rgba(91,124,255,.18), rgba(139,92,246,.14)); color:#fff; box-shadow: inset 0 0 0 1px rgba(91,124,255,.35); }

.sidebar-footer{ margin-top:auto; }
.plan-card{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; display:flex; flex-direction:column; gap:10px; }
.plan-card .title{ font-size:13px; font-weight:600; }
.plan-card .desc{ font-size:12px; color:var(--text-dim); line-height:1.5; }
.plan-card a.button{ background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:#fff; font-size:12.5px; font-weight:600; padding:8px; border-radius:8px; margin-top:4px; text-align:center; }

/* ---------- Main ---------- */
.main{ padding:26px 32px 60px; min-width:0; }
.topbar{ display:flex; align-items:center; gap:16px; margin-bottom:26px; }
.searchbar{ flex:1; display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:11px 16px; max-width:460px; }
.searchbar svg{ width:16px; height:16px; color:var(--text-faint); flex-shrink:0; }
.searchbar input{ background:none; border:none; outline:none; color:var(--text); font-size:14px; width:100%; }
.searchbar input::placeholder{ color:var(--text-faint); }
.topbar-actions{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.icon-btn{ width:38px; height:38px; border-radius:11px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-dim); }
.icon-btn svg{ width:17px; height:17px; }
.profile{ display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:30px; padding:5px 12px 5px 5px; }
.profile .avatar{ width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#FFB86B,#FF6B6B); overflow:hidden; }
.profile .avatar img{ width:100%; height:100%; object-fit:cover; }
.profile span{ font-size:13px; font-weight:600; }

/* ---------- Hero ---------- */
.hero{ position:relative; overflow:hidden; background:linear-gradient(120deg,#4A63E8 0%,#7B5CF6 60%,#9B6CFB 100%); border-radius:var(--radius-lg); padding:34px 36px; margin-bottom:26px; display:flex; align-items:center; justify-content:space-between; }
.hero::before{ content:''; position:absolute; right:-40px; top:-60px; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle at center, rgba(255,255,255,.16), transparent 70%); }
.hero-copy{ max-width:480px; position:relative; z-index:1; }
.hero-eyebrow{ font-size:11.5px; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.75); font-weight:600; margin-bottom:10px; }
.hero h1{ font-size:27px; line-height:1.25; color:#fff; margin-bottom:18px; }
.hero a.button{ background:#0B0D12; color:#fff; font-size:13.5px; font-weight:600; padding:11px 20px; border-radius:10px; display:inline-block; }
.hero-art{ position:relative; z-index:1; width:180px; height:150px; display:flex; align-items:center; justify-content:center; }
.hero-art .card{ position:absolute; width:96px; height:120px; border-radius:16px; background:rgba(255,255,255,.14); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.25); overflow:hidden; }
.hero-art .card:nth-child(1){ transform:rotate(-12deg) translate(-30px,6px); }
.hero-art .card:nth-child(2){ transform:rotate(6deg) translate(24px,-8px); background:rgba(255,255,255,.22); }
.hero-art .card:nth-child(3){ transform:translate(-3px,4px); background:#fff; display:flex; align-items:center; justify-content:center; }
.hero-art .card:nth-child(3) img{ width:100%; height:100%; object-fit:cover; }
.hero-art .card:nth-child(3) svg{ width:34px; height:34px; color:#7B5CF6; }

/* ---------- Tabs ---------- */
.tabs-row{ display:flex; align-items:center; margin-bottom:20px; gap:8px; flex-wrap:wrap; }
.tab{ font-size:13.5px; font-weight:600; color:var(--text-dim); padding:8px 16px; border-radius:9px; }
.tab.active{ background:var(--surface); color:#fff; border:1px solid var(--border); }
.tabs-row .spacer{ margin-left:auto; }

/* ---------- Grid / Cards ---------- */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:1400px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .grid{ grid-template-columns:1fr; } }

.app-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; transition:transform .18s ease, border-color .18s ease; }
.app-card:hover{ transform:translateY(-3px); border-color:#3A4258; }
.app-cover{ height:148px; position:relative; display:flex; align-items:flex-start; justify-content:space-between; padding:12px; background-size:cover; background-position:center; }
.app-cover.cover-1{ background-image:linear-gradient(135deg,#232946,#3B4A9E 70%); }
.app-cover.cover-2{ background-image:linear-gradient(135deg,#1C3B34,#2E7D6B 75%); }
.app-cover.cover-3{ background-image:linear-gradient(135deg,#3B2140,#B04A6B 70%,#E0A23C); }
.app-cover.cover-4{ background-image:linear-gradient(135deg,#26343B,#4D7C8A); }
.app-cover.cover-5{ background-image:linear-gradient(135deg,#3A2E1F,#B0742E); }
.app-cover.cover-6{ background-image:linear-gradient(135deg,#251F3D,#5B3DBF 80%); }
.app-cover.has-thumb{ background-blend-mode:overlay; background-color:rgba(11,13,18,.25); }

.traffic{ display:flex; gap:5px; }
.traffic span{ width:8px; height:8px; border-radius:50%; }
.traffic span:nth-child(1){ background:#FF6259; }
.traffic span:nth-child(2){ background:#FFBD2E; }
.traffic span:nth-child(3){ background:#28C840; }

.cover-tag{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; background:rgba(255,255,255,.16); color:#fff; padding:3px 8px; border-radius:20px; backdrop-filter:blur(4px); }
.cover-tag.free{ background:var(--lime); color:#0B0D12; }

.app-body{ padding:14px 16px 16px; }
.app-kicker{ font-size:11.5px; color:var(--text-faint); margin-bottom:4px; }
.app-title{ font-size:15px; font-weight:600; margin-bottom:10px; }
.app-title a{ color:inherit; }
.app-meta{ display:flex; align-items:center; justify-content:space-between; }
.app-meta .size, .app-meta .dl{ display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-dim); }
.app-meta .size svg, .app-meta .dl svg{ width:13px; height:13px; }
.app-meta .dl.active svg{ color:var(--lime); }

/* ---------- Right panel ---------- */
.rightpanel{ background:var(--surface); border-left:1px solid var(--border); padding:26px 22px; display:flex; flex-direction:column; gap:20px; }
.panel-card{ background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-md); padding:18px; }
.panel-title{ font-size:13px; font-weight:600; color:var(--text-dim); margin-bottom:14px; }
.storage-visual{ background:linear-gradient(135deg,#4A63E8,#7B5CF6); border-radius:14px; padding:16px; margin-bottom:14px; }
.storage-visual .label{ font-size:10.5px; color:rgba(255,255,255,.75); text-transform:uppercase; letter-spacing:.06em; }
.storage-visual .value{ font-size:19px; font-weight:700; color:#fff; margin-top:4px; }
.storage-visual .sub{ font-size:11.5px; color:rgba(255,255,255,.65); margin-top:2px; }
.stat-value{ font-size:26px; font-weight:700; }
.stat-sub{ font-size:12px; color:var(--text-dim); margin-top:2px; }
.see-all-btn{ width:100%; background:var(--surface); border:1px solid var(--border); color:var(--text-dim); font-size:12.5px; font-weight:600; padding:9px; border-radius:9px; margin-top:6px; }

.dl-list{ display:flex; flex-direction:column; gap:12px; }
.dl-row{ display:flex; align-items:center; gap:11px; }
.dl-icon{ width:34px; height:34px; border-radius:9px; flex-shrink:0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.dl-icon.c1{ background:rgba(91,124,255,.16); color:#8FA3FF; }
.dl-icon.c2{ background:rgba(198,255,61,.14); color:var(--lime); }
.dl-icon.c3{ background:rgba(255,107,107,.14); color:var(--danger); }
.dl-icon img{ width:100%; height:100%; object-fit:cover; }
.dl-icon svg{ width:16px; height:16px; }
.dl-info{ flex:1; min-width:0; }
.dl-info .name{ font-size:13px; font-weight:600; }
.dl-info .type{ font-size:11px; color:var(--text-faint); }
.dl-size{ font-size:12.5px; font-weight:600; color:var(--text-dim); }

/* ---------- Single post / page ---------- */
.post-content{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:32px; margin-bottom:26px; }
.post-content .post-cover{ width:100%; height:280px; border-radius:var(--radius-md); background-size:cover; background-position:center; margin-bottom:24px; }
.post-content h1{ font-size:28px; margin-bottom:10px; }
.post-content .post-meta-row{ display:flex; gap:14px; color:var(--text-dim); font-size:13px; margin-bottom:22px; }
.post-content .entry-body{ font-size:15px; line-height:1.75; color:var(--text); }
.post-content .entry-body p{ margin-bottom:16px; }
.post-content .entry-body h2{ font-size:20px; margin:24px 0 12px; }
.post-content .entry-body a{ color:#8FA3FF; text-decoration:underline; }

.pagination{ display:flex; gap:8px; margin-top:8px; }
.pagination a, .pagination span{ background:var(--surface); border:1px solid var(--border); padding:8px 14px; border-radius:8px; font-size:13px; color:var(--text-dim); }
.pagination .current{ background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:#fff; border-color:transparent; }

.no-results{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); padding:40px; text-align:center; color:var(--text-dim); }

/* ---------- Download CTA (right panel) ---------- */
.dl-btn{ background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:#fff; font-weight:600; font-size:14px; padding:11px 22px; border-radius:10px; border:none; display:flex; align-items:center; gap:8px; }
.dl-btn svg{ width:16px; height:16px; }
.fileinfo{ font-size:12px; color:var(--text-dim); margin-top:8px; }
.fileinfo strong{ color:var(--text); font-weight:600; }
.meta-row{ display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid var(--border); font-size:13px; }
.meta-row:last-child{ border-bottom:none; }
.meta-row .label{ color:var(--text-dim); }
.meta-row .value{ font-weight:600; }
