/* AJIKINBO Core Stylesheet */
:root {
  --aj-blue: #0284c7;
  --aj-blue-dark: #0369a1;
  --aj-blue-light: #f0f9ff;
  --aj-green: #10b981;
  --aj-amber: #f59e0b;
  --aj-dark: #0f172a;
  --aj-dark-card: #1e293b;
  --aj-gray-bg: #f8fafc;
  --aj-gray-card: #ffffff;
  --aj-gray-border: #e2e8f0;
  --aj-gray-text: #64748b;
  --aj-dark-text: #0f172a;
}

/* Header */
.aj-site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--aj-gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
[data-theme="dark"] .aj-site-header {
  background: #0b1120;
  border-color: #1e293b;
}
.aj-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.aj-branding .aj-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--aj-blue);
  letter-spacing: -0.5px;
}
.aj-logo-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--aj-blue);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}
.aj-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}
.aj-nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: color 0.15s;
}
[data-theme="dark"] .aj-nav-menu a {
  color: #cbd5e1;
}
.aj-nav-menu a:hover {
  color: var(--aj-blue);
}
.aj-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aj-search-toggle-btn, .aj-theme-switch-btn, .aj-mobile-menu-toggle {
  background: none;
  border: 1px solid var(--aj-gray-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}
[data-theme="dark"] .aj-search-toggle-btn, [data-theme="dark"] .aj-theme-switch-btn, [data-theme="dark"] .aj-mobile-menu-toggle {
  border-color: #334155;
  color: #cbd5e1;
}

/* Hero Section */
.aj-hero-section {
  padding: 64px 20px 48px;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, #e0f2fe 0%, transparent 60%);
}
[data-theme="dark"] .aj-hero-section {
  background: radial-gradient(circle at 50% 10%, #0c2d48 0%, transparent 60%);
}
.aj-hero-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--aj-blue);
  background: #e0f2fe;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
[data-theme="dark"] .aj-hero-pill {
  background: #0369a1;
  color: #e0f2fe;
}
.aj-hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #0f172a;
}
[data-theme="dark"] .aj-hero-title {
  color: #f8fafc;
}
.aj-hero-desc {
  font-size: 17px;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto 32px;
}
.aj-hero-search-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--aj-gray-border);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto 16px;
  padding: 6px 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}
[data-theme="dark"] .aj-hero-search-wrapper {
  background: #1e293b;
  border-color: #334155;
}
.aj-search-icon {
  margin-left: 12px;
  color: #94a3b8;
}
.aj-hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 15px;
  color: inherit;
  outline: none;
}
.aj-hero-search-btn {
  background: var(--aj-blue);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.aj-hero-quick-tags {
  font-size: 13px;
  color: #64748b;
}
.aj-hero-quick-tags a {
  color: var(--aj-blue);
  margin-left: 6px;
  text-decoration: underline;
}

/* Grids & Cards */
.aj-section {
  padding: 48px 0;
}
.aj-bg-alt {
  background-color: #f1f5f9;
}
[data-theme="dark"] .aj-bg-alt {
  background-color: #0b1120;
}
.aj-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.aj-section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.aj-section-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}
.aj-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.aj-theme-card {
  background: #ffffff;
  border: 1px solid var(--aj-gray-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .aj-theme-card {
  background: #111827;
  border-color: #1f2937;
}
.aj-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -3px rgb(0 0 0 / 0.08);
}
.aj-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}
.aj-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aj-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.aj-badge-free {
  background: #10b981;
  color: #ffffff;
}
.aj-badge-premium {
  background: #f59e0b;
  color: #0f172a;
}
.aj-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.aj-card-meta-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
}
.aj-card-cat {
  color: var(--aj-blue);
  font-weight: 700;
}
.aj-card-version {
  color: #94a3b8;
}
.aj-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.aj-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.aj-card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--aj-gray-border);
  margin-bottom: 14px;
}
[data-theme="dark"] .aj-card-stats {
  border-color: #1f2937;
}
.aj-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.aj-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.aj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.aj-btn-demo {
  background: #f1f5f9;
  color: #334155;
}
[data-theme="dark"] .aj-btn-demo {
  background: #1e293b;
  color: #e2e8f0;
}
.aj-btn-download {
  background: var(--aj-blue);
  color: #ffffff;
}
.aj-btn-download:hover {
  background: var(--aj-blue-dark);
}
.aj-btn-get-premium {
  background: #f59e0b;
  color: #0f172a;
}
.aj-btn-get-premium:hover {
  background: #d97706;
}

/* Category Grid */
.aj-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.aj-category-card {
  background: #ffffff;
  border: 1px solid var(--aj-gray-border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s;
}
[data-theme="dark"] .aj-category-card {
  background: #111827;
  border-color: #1f2937;
}
.aj-category-card:hover {
  border-color: var(--aj-blue);
}
.aj-cat-title {
  font-size: 15px;
  font-weight: 700;
}
.aj-cat-count {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Single Theme Page */
.aj-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-top: 24px;
}
.aj-single-thumb-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--aj-gray-border);
  margin-bottom: 24px;
}
.aj-single-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}
.aj-single-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}
.aj-download-cta-box {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
}
[data-theme="dark"] .aj-download-cta-box {
  background: #111827;
  border-color: #334155;
}
.aj-cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.aj-btn-demo-large {
  padding: 12px 24px;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 15px;
}
.aj-btn-download-large {
  padding: 12px 28px;
  background: var(--aj-blue);
  color: #ffffff;
  font-size: 15px;
  gap: 8px;
}
.aj-btn-buy-large {
  padding: 12px 28px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

/* Ad System Containers */
.aj-ad-wrapper {
  margin: 24px auto;
  text-align: center;
  background: #fafafa;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px;
}
[data-theme="dark"] .aj-ad-wrapper {
  background: #090d16;
  border-color: #1f2937;
}
.aj-ad-disclaimer {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 700;
}

/* Footer */
.aj-site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}
.aj-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.aj-footer-logo .aj-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #38bdf8;
}
.aj-footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0;
  max-width: 320px;
}
.aj-footer-title {
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.aj-footer-links {
  list-style: none;
}
.aj-footer-links li {
  margin-bottom: 8px;
}
.aj-footer-links a {
  font-size: 13px;
  color: #94a3b8;
}
.aj-footer-links a:hover {
  color: #38bdf8;
}
.aj-footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 13px;
}

/* Modals */
.aj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.aj-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
[data-theme="dark"] .aj-modal-card {
  background: #1e293b;
  color: #f1f5f9;
}
.aj-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.aj-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #94a3b8;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .aj-single-layout {
    grid-template-columns: 1fr;
  }
  .aj-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .aj-nav-menu {
    display: none;
  }
  .aj-hero-title {
    font-size: 28px;
  }
  .aj-footer-grid {
    grid-template-columns: 1fr;
  }
}
