/*
Theme Name: Casno App
Theme URI: https://yourdomain.com/
Description: Child theme for astra - App Store Clone
Author: RU Team
Author URI: https://yourdomain.com/
Template: astra
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Mona Sans', 'DM Sans', sans-serif;
      color: #18181b;
      background-color: #ffffff;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    img { display: block; max-width: 100%; }
    button { font-family: 'Mona Sans', sans-serif; cursor: pointer; }
    h1, h2, h3 { font-family: 'Mona Sans', sans-serif; line-height: 1.2; }

    /* Layout */
    .page-wrap {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 32px;
    }

    .section { padding: 40px 0; }
    
    .section-divider {
      margin: 30px 0 30px;
      padding: 0;
      border-top: 1px solid #e2e0db;
    }

    .section-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 24px;
    }

    .section-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: #18181b;
      letter-spacing: -0.02em;
    }

    .section-link {
      font-size: 0.875rem;
      font-weight: 600;
      color: #137333;
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .section-link:hover { opacity: 0.75; }

    /* Pill Nav */
    .pill-nav {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .pill-btn {
      background: #ffffff;
      border: 1px solid #e2e0db;
      color: #6b7280;
      padding: 6px 16px;
      border-radius: 999px;
      font-size: 0.875rem;
      font-weight: 500;
      transition: background 0.2s;
    }
    .pill-btn:hover { background: #f1f0ed; }

    .pill-btn-active {
      background: #e6f4ea;
      color: #137333;
      border-color: transparent;
      font-weight: 600;
    }
    .pill-btn-active:hover { background: #ceead6; }

    /* App Info */
    .app-name {
      font-size: 0.875rem;
      font-weight: 500;
      color: #18181b;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .app-meta {
      font-size: 0.75rem;
      color: #6b7280;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 2px;
    }

    /* Category Grid */
    .category-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .category-card {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      background: #000;
      box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    }
    .category-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    }

    .category-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      opacity: 0.88;
      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
    }
    .category-card:hover img { transform: scale(1.05); opacity: 1; }

    .category-card-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 24px;
    }

    .category-card-label {
      font-size: 0.625rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.6);
      margin-bottom: 4px;
    }

    .category-card-title {
      font-size: 1.3rem;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    /* Top Charts */
    .grid-top-charts {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px 40px;
    }

    .card-small {
      display: flex;
      align-items: center;
      gap: 16px;
      cursor: pointer;
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .card-small:hover { transform: translateX(4px); }

    .card-small-icon {
      width: 60px;
      height: 60px;
      flex-shrink: 0;
      border-radius: 12px;
      object-fit: cover;
      border: 1px solid rgba(0,0,0,0.06);
      transition: box-shadow 0.2s;
    }
    .card-small:hover .card-small-icon {
      box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
    }

    .card-small-info { display: flex; flex-direction: column; min-width: 0; }

    /* Recommended */
    .grid-recommended {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .card-large {
      display: flex;
      flex-direction: column;
      gap: 16px;
      cursor: pointer;
      transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .card-large:hover { transform: translateY(-3px); }

    .card-large-banner {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 16px;
      object-fit: cover;
      border: 1px solid rgba(0,0,0,0.05);
      transition: box-shadow 0.25s ease;
    }
    .card-large:hover .card-large-banner {
      box-shadow: 0 10px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    }

    .card-large-footer { display: flex; align-items: center; gap: 16px; }

    .card-large-icon {
      width: 44px;
      height: 44px;
      flex-shrink: 0;
      border-radius: 8px;
      object-fit: cover;
      border: 1px solid rgba(0,0,0,0.06);
    }

    .card-large-info { min-width: 0; }

    /**** Promo*****/
    .promo-stack {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .promo {
      border-radius: 24px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      box-shadow: 0 2px 14px rgba(0,0,0,.07);
      transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
    }

    .promo:hover {
      transform: translateY(-4px) scale(1.005);
      box-shadow: 0 14px 40px rgba(0,0,0,.14);
    }

    .promo img {
      width: 100%;
      height: 190px;
      object-fit: cover;
      display: block;
      transition: transform .4s cubic-bezier(.22,1,.36,1);
    }

    .promo:hover img {
      transform: scale(1);
    }

    .po {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 40px;
    }

    .po-lbl {
      font-size: .68rem;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: rgba(255,255,255,.6);
      margin-bottom: 8px;
    }

    .po-title {
      font-size: 1.8rem;
      font-weight: 800;
      color: #fff;
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .po-cta {
      display: inline-block;
      background: rgba(255,255,255,.18);
      backdrop-filter: blur(6px);
      color: #fff;
      font-size: .8rem;
      font-weight: 700;
      padding: 7px 18px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.25);
      transition: background .2s;
      width: fit-content;
    }

    .promo:hover .po-cta {
      background: rgba(255,255,255,.28);
    }

    /* Hero */
    .hero {
      border-radius: 24px;
      background: linear-gradient(140deg, #0d0d1a 0%, #1a1040 55%, #2d1b6b 100%);
      padding: 52px 56px;
      position: relative;
      overflow: hidden;
      animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
    }

    .hero::before {
      content: '';
      position: absolute;
      width: 480px;
      height: 480px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(91,76,245,0.45) 0%, transparent 70%);
      top: -180px;
      right: -80px;
      pointer-events: none;
    }
    .hero::after {
      content: '';
      position: absolute;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255,77,109,0.25) 0%, transparent 70%);
      bottom: -120px;
      left: 35%;
      pointer-events: none;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.8);
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 5px 16px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.15);
      margin-bottom: 24px;
    }

    .hero-title {
      font-family: 'Syne', sans-serif;
      font-size: clamp(1.8rem, 3vw, 2.7rem);
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.04em;
      line-height: 1.1;
      margin-bottom: 16px;
      max-width: 480px;
    }
    .hero-title span {
      background: linear-gradient(90deg, #a78bfa, #f472b6);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-sub {
      color: rgba(255,255,255,0.55);
      font-size: 0.95rem;
      max-width: 360px;
      line-height: 1.65;
    }

    .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

    .hero-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 26px;
      border-radius: 999px;
      font-size: 0.9rem;
      font-weight: 600;
      border: none;
      transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .hero-btn-primary {
      background: linear-gradient(135deg, #5b4cf5, #8b5cf6);
      color: #fff;
      box-shadow: 0 4px 20px rgba(91,76,245,0.4);
    }
    .hero-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(91,76,245,0.5);
    }
    .hero-btn-ghost {
      background: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.85);
      border: 1px solid rgba(255,255,255,0.2);
    }
    .hero-btn-ghost:hover { background: rgba(255,255,255,0.18); }

    .hero-floaters {
      position: absolute;
      right: 52px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 16px;
      align-items: flex-end;
    }

    .floater {
      border-radius: 16px;
      overflow: hidden;
      border: 2px solid rgba(255,255,255,0.14);
      box-shadow: 0 10px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
      animation: float 4s ease-in-out infinite;
    }
    .floater:nth-child(2) { animation-delay: -1.4s; margin-bottom: 20px; }
    .floater:nth-child(3) { animation-delay: -2.8s; }
    .floater img { width: 68px; height: 68px; object-fit: cover; }

    /* Stats Section */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
      max-width: 1200px;
      margin: 2em auto 0;
      padding: 0 24px;
    }

    .stat-card {
      background: #ffffff;
      padding: 20px 15px;
      border-radius: 12px;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .stat-card:hover {
      transform: translateY(-5px);
    }

    .stat-value {
      color: #c62828;
      font-size: 2.2rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
      font-family: 'Syne', sans-serif;
    }

    .stat-label {
      color: #5f6368;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Countries */
    .countries-wrap { background: #f2f0eb; padding: 40px 0; }

    .countries-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 24px;
    }

    .countries-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 16px;
    }

    .country-card {
      background: #fff;
      border-radius: 16px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      border: 1.5px solid #e2e0db;
      box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
      transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
    }
    .country-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
    }

    .country-card-flag { font-size: 2.5rem; line-height: 1; }
    .country-card-name {
      font-family: 'Syne', sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      text-align: center;
      color: #18181b;
    }
    .country-card-region { font-size: 0.68rem; color: #6b7280; text-align: center; }

    /* Keyframes */
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50%       { transform: translateY(-10px); }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .page-wrap { padding: 0 24px; }
      .hero { padding: 44px 40px; }
      .hero-floaters { right: 32px; }
    }

    @media (max-width: 900px) {
      .category-grid    { grid-template-columns: repeat(2, 1fr); }
      .grid-top-charts  { grid-template-columns: repeat(2, 1fr); }
      .grid-recommended { grid-template-columns: repeat(2, 1fr); }
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .countries-grid   { grid-template-columns: repeat(3, 1fr); }
      .hero-floaters   { display: none; }
    }

    @media (max-width: 600px) {
      .page-wrap         { padding: 0 16px; }
      .section           { padding: 28px 0; }
      .category-grid    { grid-template-columns: 1fr; }
      .grid-top-charts  { grid-template-columns: 1fr; }
      .grid-recommended { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: 1fr; }
      .stat-card { padding: 20px 10px; }
      .countries-grid   { grid-template-columns: repeat(2, 1fr); }
      .countries-wrap   { padding: 28px 0; }
      .hero              { padding: 32px 24px; }
      .hero-title      { font-size: 1.7rem; }
    }