/*
Theme Name: XYZRummy Complete Apps
Theme URI: https://xyzrummy.com/
Author: XYZRummy
Description: Mobile-first app directory theme inspired by the supplied AllyonoApps reference. Includes app cards, All Apps/New Apps tabs, app details, custom fields, logo support and responsive navigation.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: xyzrummy
License: GPL-2.0-or-later
*/

:root{
  --green:#08b83f;
  --green2:#00a83b;
  --dark:#003b1c;
  --text:#111;
  --muted:#777;
  --border:#dedede;
  --bg:#fff;
  --soft:#f7faf8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.site{max-width:980px;margin:0 auto;background:#fff;min-height:100vh}
.site-header{background:linear-gradient(135deg,#0bc842 0%,#009a35 55%,#006b2b 100%);color:#fff}
.header-inner{min-height:72px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.custom-logo{width:46px;height:46px;object-fit:cover;border-radius:9px;background:#fff}
.brand-fallback{width:46px;height:46px;border-radius:9px;background:#fff;color:#009f39;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.site-title{font-size:22px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-toggle{border:0;background:rgba(255,255,255,.16);color:#fff;width:42px;height:42px;border-radius:8px;font-size:24px;cursor:pointer}
.primary-nav{background:#fff;border-bottom:1px solid #ddd}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;flex-wrap:wrap}
.primary-nav li{margin:0}
.primary-nav a{display:block;padding:10px 14px;font-size:14px;font-weight:600;color:#111}
.primary-nav a:hover{background:#f2f2f2;color:#008e35}
.container{padding:0 16px}
.intro{padding:17px 0 10px;font-size:15px;line-height:1.65}
.intro p{margin:0}
.tabs{display:flex;gap:0;margin:8px 0 14px;border:1px solid var(--green);border-radius:7px;overflow:hidden}
.tab{width:50%;padding:10px 8px;text-align:center;font-weight:700;border:0;background:#fff;color:#111;cursor:pointer;font-size:15px}
.tab.active{background:var(--green);color:#fff}
.app-panel{display:none}
.app-panel.active{display:block}
.app-list{display:flex;flex-direction:column;gap:10px}
.app-card{display:grid;grid-template-columns:38px 58px minmax(0,1fr) 102px;align-items:center;gap:10px;padding:11px;border:1px solid #d8d8d8;border-radius:9px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.rank{font-size:18px;font-weight:700;text-align:center;color:#222}
.app-thumb{width:58px;height:58px;border-radius:11px;object-fit:cover;border:1px solid #ddd;background:#f1f1f1}
.app-thumb-placeholder{width:58px;height:58px;border-radius:11px;background:#e9f8ee;color:#008f35;border:1px solid #cfead8;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;text-align:center}
.app-info{min-width:0}
.app-title{font-size:18px;line-height:1.25;font-weight:800;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta{font-size:13px;line-height:1.55}
.meta div{margin:0}
.bonus{color:#f02222;font-weight:600}
.withdraw{color:#00a33a;font-weight:600}
.download-btn{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#13c94b,#00a83a);color:#fff;font-weight:800;border-radius:6px;padding:9px 12px;font-size:14px;min-height:38px;box-shadow:0 1px 2px rgba(0,0,0,.1)}
.download-btn:hover{filter:brightness(.96)}
.empty{padding:24px 12px;text-align:center;background:var(--soft);border-radius:8px;color:var(--muted)}
.site-content{padding-bottom:22px}
.long-content{padding-top:14px}
.long-content h1,.long-content h2,.long-content h3{line-height:1.3}
.long-content h1{font-size:28px}
.long-content h2{font-size:22px;margin-top:28px}
.long-content p{margin:0 0 15px}
.single-app{padding:18px 0}
.single-top{display:grid;grid-template-columns:100px 1fr;gap:15px;align-items:center}
.single-thumb{width:100px;height:100px;border-radius:18px;object-fit:cover;border:1px solid #ddd}
.single-title{font-size:28px;line-height:1.2;margin:0 0 7px}
.single-meta{font-size:15px}
.single-download{margin:16px 0}
.single-download .download-btn{width:100%;font-size:17px;padding:12px}
.notice{background:#fff8df;border:1px solid #efd98b;padding:12px;border-radius:8px;font-size:13px;margin:18px 0}
.site-footer{border-top:1px solid #ddd;padding:18px 16px;text-align:center;color:#666;font-size:13px}
@media(max-width:700px){
  .site{max-width:100%}
  .header-inner{min-height:64px;padding:10px 12px}
  .site-title{font-size:20px}
  .primary-nav ul{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}
  .primary-nav a{padding:9px 12px;white-space:nowrap}
  .container{padding:0 12px}
  .app-card{grid-template-columns:28px 54px minmax(0,1fr) 82px;gap:8px;padding:9px}
  .app-thumb,.app-thumb-placeholder{width:54px;height:54px}
  .app-title{font-size:16px}
  .meta{font-size:12px}
  .download-btn{font-size:13px;padding:8px 7px}
  .single-top{grid-template-columns:82px 1fr}
  .single-thumb{width:82px;height:82px}
  .single-title{font-size:23px}
}
@media(max-width:420px){
  .app-card{grid-template-columns:24px 50px minmax(0,1fr) 76px}
  .app-thumb,.app-thumb-placeholder{width:50px;height:50px}
  .app-title{font-size:15px}
  .download-btn{font-size:12px}
}
.home-seo-content {
    margin: 30px 0 20px;
    padding: 22px 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 14px;
    border: 1px solid #e7edf5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.home-seo-content h1 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.22;
    font-weight: 800;
    color: #315b9b;
    letter-spacing: -0.4px;
}

.home-seo-content p {
    margin: 0 0 13px;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

.home-seo-content p:last-child {
    margin-bottom: 0;
}

.important-notice {
    position: relative;
    margin: 18px 0 25px;
    padding: 16px 18px 16px 20px;
    background: linear-gradient(135deg, #f0fff5, #ffffff);
    border: 1px solid #bdebcf;
    border-left: 5px solid #08b83f;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.important-notice strong {
    display: block;
    margin-bottom: 7px;
    color: #008c35;
    font-size: 17px;
    font-weight: 800;
}

.important-notice p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {

    .home-seo-content {
        margin: 22px 0 16px;
        padding: 18px 14px;
        border-radius: 12px;
    }

    .home-seo-content h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .home-seo-content p {
        font-size: 13px;
        line-height: 1.65;
    }

    .important-notice {
        padding: 14px 14px 14px 16px;
    }

    .important-notice strong {
        font-size: 16px;
    }
}
/* ==============================
   XYZ App Detail Page
============================== */

.xyz-app-detail {
    max-width: 650px;
    margin: 20px auto;
}

/* Header */

.xyz-app-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 18px 18px 0 0;
}

.xyz-logo-img,
.xyz-logo-placeholder {
    width: 125px;
    height: 125px;
    border-radius: 25px;
    object-fit: cover;
    flex-shrink: 0;
}

.xyz-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-weight: 800;
    color: #777;
}

.xyz-app-title-area h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #222;
}

.xyz-bonus-text {
    color: #4169e1;
    font-size: 15px;
    font-weight: 700;
}


/* Information */

.xyz-app-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #e7edf5;
    border-top: 0;
}

.xyz-info-box {
    text-align: center;
    padding: 16px 5px;
    border-right: 1px solid #eee;
    font-size: 12px;
}

.xyz-info-box:last-child {
    border-right: 0;
}

.xyz-info-box strong {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #555;
}

.xyz-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 3px;
}


/* Download */

.xyz-download-area {
    padding: 16px 12px 8px;
}

.xyz-download-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 18px;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #08c95a,
        #006b35
    );

    color: #fff !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 800;

    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.xyz-download-btn:hover {
    transform: translateY(-1px);
}


/* Telegram */

.xyz-telegram-area {
    padding: 4px 12px 18px;
}

.xyz-telegram-btn {
    display: block;
    text-align: center;
    padding: 12px 15px;
    border: 2px solid #8eb4ff;
    border-radius: 30px;
    color: #4169e1 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
}


/* Description */

.xyz-description {
    padding: 10px 14px 20px;
}

.xyz-description h2 {
    font-size: 21px;
    margin: 10px 0 12px;
    color: #315b9b;
}

.xyz-description p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 14px;
}


/* Related Apps */

.xyz-related {
    margin-top: 10px;
    padding: 18px 14px 25px;
}

.xyz-related h2 {
    font-size: 21px;
    color: #315b9b;
    margin: 0 0 15px;
}

.xyz-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.xyz-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    text-decoration: none !important;
}

.xyz-related-img {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
}

.xyz-related-card span {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}


/* Mobile */

@media (max-width: 600px) {

    .xyz-app-detail {
        margin: 12px auto;
    }

    .xyz-app-header {
        gap: 15px;
        padding: 17px 13px;
    }

    .xyz-logo-img,
    .xyz-logo-placeholder {
        width: 95px;
        height: 95px;
        border-radius: 20px;
    }

    .xyz-app-title-area h1 {
        font-size: 22px;
    }

    .xyz-bonus-text {
        font-size: 13px;
    }

    .xyz-info-box {
        padding: 13px 3px;
    }

    .xyz-info-box strong {
        font-size: 10px;
    }

    .xyz-icon {
        font-size: 16px;
    }

    .xyz-download-btn {
        font-size: 15px;
        padding: 13px;
    }

    .xyz-related-grid {
        grid-template-columns: 1fr;
    }
}