/*
Theme Name: Sirukathaigal APK
Theme URI: https://sirukathaigal.in/
Description: Sirukathaigal app directory theme built on the APKTemplates APKPURE backend.
Author: Sirukathaigal
Template: apkpure
Version: 0.3.4
Requires at least: 6.1
Requires PHP: 8.1
Text Domain: sirukathaigal-apk
*/

:root {
  --sk-bg: #f4f6f9;
  --sk-card: #ffffff;
  --sk-text: #182230;
  --sk-muted: #667085;
  --sk-soft: #f7f9fc;
  --sk-border: #e5e9f0;
  --sk-accent: #2457e6;
  --sk-accent-dark: #173da8;
  --sk-green: #16835b;
  --sk-radius: 16px;
  --sk-shadow: 0 8px 28px rgba(16, 24, 40, .06);
}

html { background: var(--sk-bg); }
body { margin: 0; background: var(--sk-bg); color: var(--sk-text); }

.sk-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.sk-home, .sk-archive { min-height: 60vh; padding-bottom: 72px; }
.sk-home a, .sk-archive a { text-decoration: none; }

/* Header */
.sk-header { background: #fff; border-bottom: 1px solid var(--sk-border); position: relative; z-index: 20; }
.sk-header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.sk-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--sk-text); }
.sk-brand img { display: block; width: auto; height: 38px; max-width: 150px; object-fit: contain; }
.sk-brand-text { font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.sk-main-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.sk-main-nav a { color: #4b5565; font-size: 14px; font-weight: 600; transition: color .15s ease; }
.sk-main-nav a:hover { color: var(--sk-accent); }
.sk-header-search { width: 230px; height: 42px; display: flex; align-items: center; border: 1px solid var(--sk-border); border-radius: 11px; background: #fafbfc; overflow: hidden; }
.sk-header-search input { width: 100%; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; background: transparent !important; padding: 0 12px !important; color: var(--sk-text); box-shadow: none !important; font-size: 14px; }
.sk-header-search button { width: 44px; height: 100%; border: 0; border-left: 1px solid var(--sk-border); background: #fff; color: var(--sk-accent); cursor: pointer; font-size: 19px; }

/* Homepage hero */
.sk-hero { background: linear-gradient(135deg, #eef4ff 0%, #fff 68%); border-bottom: 1px solid var(--sk-border); }
.sk-hero-grid { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 56px; align-items: center; }
.sk-eyebrow, .sk-kicker { display: block; color: var(--sk-accent); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sk-hero h1 { max-width: 720px; margin: 12px 0 18px; color: #111827; font-size: clamp(38px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.sk-hero p { max-width: 660px; margin: 0; color: var(--sk-muted); font-size: 17px; line-height: 1.7; }
.sk-home-search { max-width: 650px; height: 58px; display: flex; margin-top: 25px; padding: 5px; background: #fff; border: 1px solid var(--sk-border); border-radius: 14px; box-shadow: var(--sk-shadow); box-sizing: border-box; }
.sk-home-search input { min-width: 0; flex: 1; border: 0 !important; outline: 0 !important; padding: 0 14px !important; background: transparent !important; box-shadow: none !important; font-size: 15px; color: var(--sk-text); }
.sk-home-search button { border: 0; border-radius: 10px; padding: 0 24px; background: var(--sk-accent); color: #fff; font-weight: 700; cursor: pointer; }
.sk-home-search button:hover { background: var(--sk-accent-dark); }
.sk-hero-links { display: flex; gap: 22px; margin-top: 15px; }
.sk-hero-links a { color: var(--sk-accent); font-size: 14px; font-weight: 700; }
.sk-hero-panel { display: grid; gap: 12px; }
.sk-hero-stat { padding: 21px 23px; background: rgba(255,255,255,.9); border: 1px solid var(--sk-border); border-radius: 16px; box-shadow: var(--sk-shadow); }
.sk-hero-stat strong { display: block; margin-bottom: 4px; color: #111827; font-size: 27px; line-height: 1.1; }
.sk-hero-stat span { color: var(--sk-muted); font-size: 13px; }

/* Sections */
.sk-section { padding-top: 48px; }
.sk-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sk-section-head h2 { margin: 5px 0 0; color: #172033; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; }
.sk-section-head > a { color: var(--sk-accent); font-size: 13px; font-weight: 700; }

/* Categories */
.sk-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sk-category-card { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 15px; color: var(--sk-text); background: #fff; border: 1px solid var(--sk-border); border-radius: 14px; box-shadow: var(--sk-shadow); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.sk-category-card:hover { transform: translateY(-2px); border-color: #cbd6ef; box-shadow: 0 12px 30px rgba(16,24,40,.09); }
.sk-category-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 12px; background: #edf3ff; color: var(--sk-accent); font-size: 16px; font-weight: 800; }
.sk-category-card strong, .sk-category-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-category-card strong { font-size: 14px; }
.sk-category-card small { margin-top: 4px; color: var(--sk-muted); font-size: 12px; }

/* App cards */
.sk-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.sk-app-card { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 15px; background: #fff; border: 1px solid var(--sk-border); border-radius: 16px; box-shadow: var(--sk-shadow); }
.sk-app-card-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 13px; color: var(--sk-text); }
.sk-app-card img { width: 68px; height: 68px; flex: 0 0 68px; display: block; border-radius: 15px; object-fit: cover; background: #eef1f5; }
.sk-app-card-copy { min-width: 0; }
.sk-app-card h3 { margin: 0 0 5px; color: #172033; font-size: 15px; line-height: 1.35; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-app-card p { margin: 0 0 6px; color: var(--sk-muted); font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-rating { color: #d48600; font-size: 12px; font-weight: 700; }
.sk-card-button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #d7e0f5; border-radius: 9px; color: var(--sk-accent); background: #f7f9ff; font-size: 11px; font-weight: 700; }
.sk-card-button:hover { background: #edf3ff; }

/* Popular */
.sk-popular-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sk-popular-card { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 13px; color: var(--sk-text); background: #fff; border: 1px solid var(--sk-border); border-radius: 14px; }
.sk-popular-card:hover { border-color: #cbd6ef; }
.sk-popular-card > b { width: 18px; flex: 0 0 18px; color: #98a2b3; font-size: 13px; text-align: center; }
.sk-popular-card img { width: 54px; height: 54px; flex: 0 0 54px; display: block; border-radius: 13px; object-fit: cover; background: #eef1f5; }
.sk-popular-card span { min-width: 0; }
.sk-popular-card strong, .sk-popular-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-popular-card strong { font-size: 13px; }
.sk-popular-card small { margin-top: 4px; color: #d48600; font-size: 11px; }

/* Taxonomy/archive */
.sk-archive { padding-top: 24px; }
.sk-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: #98a2b3; font-size: 13px; }
.sk-breadcrumbs a { color: #667085; }
.sk-breadcrumbs strong { color: #344054; font-weight: 600; }
.sk-archive-head { padding: 30px 34px; background: #fff; border: 1px solid var(--sk-border); border-radius: 18px; box-shadow: var(--sk-shadow); }
.sk-archive-head h1 { margin: 6px 0 9px; color: #111827; font-size: 39px; line-height: 1.1; letter-spacing: -.035em; }
.sk-archive-description { max-width: 780px; color: var(--sk-muted); font-size: 15px; line-height: 1.7; }
.sk-tax-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 0; }
.sk-tax-chips a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; color: #344054; background: #fff; border: 1px solid var(--sk-border); border-radius: 999px; font-size: 12px; font-weight: 600; }
.sk-tax-chips a:hover { color: var(--sk-accent); border-color: #c9d5f0; }
.sk-tax-chips small { color: #98a2b3; font-size: 11px; }
.sk-archive-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 26px; }
.sk-result-count { color: var(--sk-muted); font-size: 13px; }
.sk-tax-sidebar { padding-top: 48px; }
.sk-sidebar-card { padding: 21px; background: #fff; border: 1px solid var(--sk-border); border-radius: 16px; box-shadow: var(--sk-shadow); }
.sk-sidebar-card h3 { margin: 5px 0 14px; color: #172033; font-size: 18px; }
.sk-side-links a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: #344054; border-bottom: 1px solid #f0f2f5; font-size: 13px; }
.sk-side-links a:last-child { border-bottom: 0; }
.sk-side-links a:hover { color: var(--sk-accent); }
.sk-side-links small { color: #98a2b3; }
.sk-empty { padding: 44px 28px; background: #fff; border: 1px solid var(--sk-border); border-radius: 16px; text-align: center; }
.sk-empty h2 { margin: 0 0 8px; }
.sk-empty p { margin: 0; color: var(--sk-muted); }

/* Footer */
.sk-footer { margin-top: 0; padding: 55px 0 20px; color: #aeb8c7; background: #111827; }
.sk-footer-top { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.2fr; gap: 48px; }
.sk-footer-logo { margin-bottom: 11px; color: #fff; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.sk-footer p { margin: 0; color: #9ca8b8; font-size: 13px; line-height: 1.75; }
.sk-footer h3 { margin: 0 0 13px; color: #fff; font-size: 14px; }
.sk-footer ul { margin: 0; padding: 0; list-style: none; }
.sk-footer li { margin: 0 0 9px; }
.sk-footer a { color: #aeb8c7; font-size: 13px; }
.sk-footer a:hover { color: #fff; }
.sk-footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; color: #778398; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; }

/* Parent theme isolation for our custom pages */
.sk-home *, .sk-archive *, .sk-header *, .sk-footer * { box-sizing: border-box; }
.sk-home img, .sk-archive img, .sk-header img { max-width: 100%; }

@media (max-width: 1000px) {
  .sk-main-nav { gap: 15px; }
  .sk-header-search { width: 190px; }
  .sk-hero-grid { grid-template-columns: 1fr; padding: 55px 0; }
  .sk-hero-panel { grid-template-columns: repeat(3, 1fr); }
  .sk-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sk-app-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sk-popular-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sk-archive-layout { grid-template-columns: 1fr; }
  .sk-tax-sidebar { display: none; }
  .sk-footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .sk-container { width: min(100% - 24px, 1180px); }
  .sk-header-inner { min-height: 62px; gap: 12px; }
  .sk-main-nav { display: none; }
  .sk-header-search { flex: 1; width: auto; }
  .sk-brand-text { font-size: 18px; }
  .sk-hero-grid { padding: 42px 0; }
  .sk-hero h1 { font-size: 34px; }
  .sk-hero p { font-size: 15px; }
  .sk-hero-panel { grid-template-columns: 1fr; }
  .sk-category-grid, .sk-app-grid, .sk-popular-grid { grid-template-columns: 1fr; }
  .sk-section { padding-top: 36px; }
  .sk-section-head h2 { font-size: 24px; }
  .sk-archive-head { padding: 24px 20px; }
  .sk-archive-head h1 { font-size: 31px; }
  .sk-footer-top { grid-template-columns: 1fr; gap: 30px; }
  .sk-footer-bottom { flex-direction: column; }
}
