/*
Theme Name: Golumn Theme
Theme URI: https://golumn.app
Author: Golumn.app Team
Author URI: https://golumn.app
Description: APKTodo-style WordPress theme for golumn.app — a premium Android App & Game MOD APK listing platform with dark mode, subdomain routing, app cards grid, download timers, and spec tables.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: golumn-theme
Tags: dark, apps, games, apk, mod, download
*/

/* ==========================================================================
   APKTodo-style Design System for golumn.app
   ========================================================================== */

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

:root {
  --bg-body: #111827;
  --bg-header: #1a2236;
  --bg-card: #1e293b;
  --bg-card-hover: #283548;
  --bg-input: #1e293b;
  --bg-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bg-spec: #0f172a;
  --border: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(148, 163, 184, 0.35);
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-light: rgba(34, 197, 94, 0.15);
  --blue: #3b82f6;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --badge-mod: #ef4444;
  --badge-update: #22c55e;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --transition: all 0.2s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.site-logo .logo-dot { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-search-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.header-search-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
}

/* ==========================================================================
   HERO / SEARCH SECTION
   ========================================================================== */
.hero-section {
  background: var(--bg-hero);
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-tagline {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-tagline .accent { color: var(--accent); }

.hero-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero-search input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}

.hero-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.hero-search .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
}

.hero-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

/* ==========================================================================
   SECTION BLOCKS
   ========================================================================== */
.content-section {
  padding: 2.5rem 0 1rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-head h2 i { color: var(--accent); font-size: 1.1rem; }

.see-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.see-more:hover { text-decoration: underline; }

/* ==========================================================================
   APP CARDS (APKTodo Grid Style)
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.app-card:hover .card-banner img {
  transform: scale(1.05);
}

.card-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ribbon-mod {
  background: var(--badge-mod);
  color: #fff;
}

.ribbon-updated {
  background: var(--badge-update);
  color: #fff;
}

.card-body {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  align-items: flex-start;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-spec);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  flex: 1;
  min-width: 0;
}

.card-meta h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cat {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.card-specs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.card-specs span {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ==========================================================================
   SINGLE APP DETAIL PAGE (APKTodo Subdomain Style)
   ========================================================================== */
.breadcrumb {
  padding: 1rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-dim); }

.single-app-wrapper {
  max-width: 860px;
  padding: 1rem 0 3rem;
}

.single-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}

.single-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.single-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-info h1 {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.single-developer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.single-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.single-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-green { background: var(--accent-light); color: var(--accent); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--badge-mod); }

/* Spec table */
.spec-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.spec-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-row:last-child { border-bottom: none; }

.spec-label {
  width: 140px;
  flex-shrink: 0;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
}

.spec-value {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.spec-value a { color: var(--accent); }
.spec-value a:hover { text-decoration: underline; }

/* Description content */
.app-description {
  margin: 2rem 0;
}

.app-description h2,
.app-description h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.app-description p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.app-description ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.app-description ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  list-style: disc;
}

/* MOD Features Box */
.mod-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.mod-box h4 {
  color: #f87171;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mod-box li {
  color: var(--text);
  font-size: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.3rem;
  list-style: none;
}

.mod-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Download Box */
.download-section {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.download-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.download-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(34,197,94,0.35);
}

.btn-download:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.45);
}

.timer-area {
  display: none;
  margin-top: 1rem;
}

.timer-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
}

.mirror-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.mirror-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.mirror-link:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* FAQ Accordion */
.faq-section { margin: 2rem 0; }
.faq-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
}

.faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-question .faq-toggle {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.faq-answer {
  display: none;
  padding: 0 1rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand { }
.footer-brand .site-logo { margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-dim); font-size: 0.88rem; max-width: 300px; }

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero-tagline { font-size: 1.5rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .single-header { flex-direction: column; align-items: center; text-align: center; }
  .single-badges { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .spec-label { width: auto; }
}
