/*
Theme Name: YonoAddaApp Gaming Theme
Theme URI: https://yonoaddaapp.com
Author: YonoAdda
Author URI: https://yonoaddaapp.com
Description: A gaming app directory theme for YonoAdda
Version: 2.0.3
License: GNU General Public License v2 or later
Text Domain: yonoadda
Tags: gaming, apps, directory, rummy, earning
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --purple-dark: #3B0764;
  --purple-mid:  #5B21B6;
  --green:       #16A34A;
  --green-dark:  #15803D;
  --red:         #DC2626;
  --bg:          #F4F4F4;
  --white:       #FFFFFF;
  --text:        #1a1a1a;
  --border:      #E5E7EB;
  --shadow:      0 1px 4px rgba(0,0,0,0.08);
  --font:        'Segoe UI', Arial, sans-serif;
}

/* =============================================
   RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =============================================
   HEADER  — sticky purple bar
   ============================================= */
.site-header {
  background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo + site name */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img,
.site-logo .default-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-logo .custom-logo-link img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.site-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* Telegram circle button */
.header-telegram {
  width: 42px;
  height: 42px;
  background: #0088CC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.header-telegram:hover { background: #006FAA; transform: scale(1.08); }

/* =============================================
   FEATURED TOP-3 CARDS
   ============================================= */
.featured-apps {
  background: var(--white);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.featured-apps-inner {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 0;
}

.featured-app-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  min-width: 120px;
  max-width: 160px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.featured-app-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.featured-app-card img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.featured-app-card .feat-name {
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.btn-feat-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  background: var(--green);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.18s;
}
.btn-feat-dl:hover { background: var(--green-dark); }

/* =============================================
   APP LIST  — full-width rows
   ============================================= */
.app-list-section {
  width: 100%;
  padding: 0;
  margin: 0;
}

.app-list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.app-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}
.app-list-item:hover { background: #F0FDF4; }

.app-list-item .app-icon {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.14);
}

.app-icon-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.app-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.app-title {
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  flex-wrap: nowrap;
}
.meta-row.bonus    { color: var(--red); }
.meta-row.withdraw { color: var(--green); }

.btn-dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--green);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  min-width: 84px;
  width: 84px;
  height: 60px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(22,163,74,0.3);
  transition: background 0.18s, transform 0.18s;
  text-align: center;
  line-height: 1.2;
}
.btn-dl:hover { background: var(--green-dark); transform: scale(1.03); }
.btn-dl-icon { font-size: 1.1rem; line-height: 1; }

/* =============================================
   SEO CONTENT SECTION
   ============================================= */
.seo-content {
  background: var(--white);
  padding: 28px 20px;
  border-top: 1px solid var(--border);
}

.seo-content h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; color: #111; }
.seo-content h2 { font-size: 1.2rem; font-weight: 800; margin: 20px 0 8px; color: #111; }
.seo-content h3 { font-size: 1rem;   font-weight: 700; margin: 14px 0 6px; }
.seo-content p  { margin-bottom: 12px; color: #374151; line-height: 1.75; font-size: 0.97rem; }
.seo-content ul { margin: 8px 0 14px 4px; }
.seo-content ul li { padding: 3px 0 3px 18px; position: relative; font-size: 0.95rem; color: #374151; }
.seo-content ul li::before { content: "•"; position: absolute; left: 4px; color: #333; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 18px 16px;
  font-size: 0.85rem;
  margin-top: 0;
}
.site-footer a { color: rgba(255,255,255,0.92); }
.site-footer a:hover { color: #fff; }
.site-footer p + p { margin-top: 6px; }

/* =============================================
   SINGLE APP PAGE
   ============================================= */
.single-app-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.single-app-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 14px;
}

.single-app-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
}

.single-icon {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

.btn-download-main {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #F97316 0%, #FBBF24 100%);
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(249,115,22,0.38);
  transition: opacity 0.18s, transform 0.18s;
}
.btn-download-main:hover { opacity: 0.9; transform: scale(1.02); }

/* Details card */
.details-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.details-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
}
.detail-row:last-child { border-bottom: none; }
.d-icon  { font-size: 1.3rem; flex-shrink: 0; }
.d-label { font-weight: 800; }
.d-val   { margin-left: auto; font-weight: 700; color: var(--purple-mid); font-size: 1rem; }

/* Claim button */
.btn-claim {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #F97316 0%, #FBBF24 100%);
  color: #fff;
  text-align: center;
  padding: 17px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 14px 0;
  box-shadow: 0 4px 14px rgba(249,115,22,0.38);
  transition: opacity 0.18s, transform 0.18s;
}
.btn-claim:hover { opacity: 0.9; transform: scale(1.01); }

/* About section */
.about-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.about-card h2 { font-size: 1.05rem; font-weight: 800; text-align: center; margin-bottom: 14px; }
.about-card p  { color: #374151; line-height: 1.8; margin-bottom: 12px; font-size: 0.95rem; }
.about-card h3 { font-size: 0.97rem; font-weight: 700; margin: 14px 0 6px; color: var(--purple-dark); }

/* Disclaimer */
.disclaimer {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.84rem;
  color: #92400E;
  margin: 12px 0;
  line-height: 1.6;
}

/* Try other apps heading */
.try-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6B7280;
  margin: 22px 0 10px 16px;
}

/* =============================================
   DESKTOP OVERRIDES  >= 768px
   ============================================= */
@media (min-width: 768px) {

  .site-name { font-size: 1.8rem; }

  /* Featured top-3 */
  .featured-apps { padding: 20px 24px; }
  .featured-apps-inner {
    max-width: 700px;
    gap: 24px;
  }
  .featured-app-card { max-width: 200px; padding: 18px 14px 14px; }
  .featured-app-card img { width: 100px; height: 100px; }
  .featured-app-card .feat-name { font-size: 0.9rem; }
  .btn-feat-dl { font-size: 0.88rem; padding: 8px 12px; }

  /* App list — FULL WIDTH, no centering */
  .app-list-section { padding: 0; width: 100%; }
  .app-list { width: 100%; }

  .app-list-item {
    padding: 14px 32px;
    gap: 18px;
  }

  .app-list-item .app-icon {
    width: 64px;
    height: 64px;
  }

  .app-icon-placeholder {
    width: 64px;
    height: 64px;
  }

  .app-title { font-size: 1.05rem; }

  .meta-row { font-size: 0.88rem; }

  .btn-dl {
    min-width: 110px;
    width: 110px;
    height: 58px;
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  /* SEO content */
  .seo-content { padding: 36px 40px; }
  .seo-content h1 { font-size: 2rem; }
  .seo-content h2 { font-size: 1.35rem; }

  /* Single app page */
  .single-app-wrap { padding: 28px 40px 60px; }
  .single-icon { width: 180px; height: 180px; }
}

/* =============================================
   UTILITY
   ============================================= */
.no-apps-msg {
  text-align: center;
  padding: 40px 20px;
  color: #9CA3AF;
}
