/*
Theme Name: GeneratePress Child (Rummy)
Description: A child theme for GeneratePress - clean modern design for NewRummyAllApp.
Author: Antigravity
Template: generatepress
Version: 2.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #1E88E5;
    --accent: #E53935;
    --accent-dark: #B71C1C;
    --green: #2E7D32;
    --gold: #F9A825;
    --text-dark: #1A1A2E;
    --text-med: #444;
    --text-light: #888;
    --bg-white: #FFFFFF;
    --bg-light: #F4F6FA;
    --border: #E8ECEE;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.13);
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 640px;
}

/* ============================================================
   GLOBAL BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font) !important;
    background: var(--bg-light) !important;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.site-content {
    display: flex;
    justify-content: center;
    padding: 0 !important;
}

.content-area {
    width: 100%;
    max-width: var(--max-w);
}

.site-main {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 !important;
    background: var(--bg-white);
    min-height: 80vh;
}

#right-sidebar,
#left-sidebar {
    display: none !important;
}

.site-info {
    display: none !important;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%) !important;
    padding: 0 !important;
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.inside-header {
    padding: 10px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    padding: 0 !important;
}

.main-title,
.main-title a {
    color: #fff !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    font-family: var(--font) !important;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.main-title a {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.main-title a::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    background-image: url('https://newrummyallapp.com/wp-content/uploads/2026/09/newrummyallapp-logo.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-title a:hover {
    color: var(--gold) !important;
}

.site-description {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 10px !important;
    font-family: var(--font) !important;
}

.main-navigation {
    background: rgba(0, 0, 0, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul li a {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 13px !important;
    font-family: var(--font) !important;
    transition: color 0.2s, background 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item>a {
    color: var(--gold) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

button.menu-toggle {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: var(--r-sm) !important;
    padding: 6px 11px !important;
    background: rgba(255, 255, 255, 0.10) !important;
    font-family: var(--font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.menu-toggle {
    line-height: 30px !important;
}

/* ============================================================
   NOTICE BANNER
   ============================================================ */
.rummy-notice-banner {
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-left: 4px solid var(--gold);
    border-bottom: 1px solid #FFE082;
    padding: 11px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.55;
    color: #5D4037;
    font-family: var(--font);
}

.rummy-notice-banner .notice-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.rummy-notice-banner .notice-body strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #BF360C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

/* ============================================================
   TOP 3 APPS PODIUM
   ============================================================ */
.rummy-top3-section {
    background: linear-gradient(180deg, #1565C0 0%, #0D47A1 45%, #EBF0FF 100%);
    padding: 22px 10px 28px;
    position: relative;
    overflow: hidden;
}

.rummy-top3-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.rummy-top3-heading {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-family: var(--font);
}

.rummy-podium-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

/* Podium card */
.rummy-podium-card {
    background: #fff;
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px 12px;
    position: relative;
    flex: 1;
    max-width: 185px;
    box-shadow: var(--shadow-lg);
    text-decoration: none !important;
    color: var(--text-dark);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 2px solid transparent;
}

.rummy-podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
    color: var(--text-dark);
}

.rummy-podium-card .podium-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 27px;
    height: 27px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
    z-index: 2;
    font-family: var(--font);
}

/* Rank 1 - Gold */
.rummy-podium-card.podium-rank-1 {
    border-color: var(--gold);
    padding: 22px 10px 14px;
    transform: translateY(-10px);
    z-index: 2;
}

.rummy-podium-card.podium-rank-1:hover {
    transform: translateY(-15px);
}

.rummy-podium-card.podium-rank-1 .podium-badge {
    background: linear-gradient(135deg, #FFD600, #FFA000);
    width: 32px;
    height: 32px;
    font-size: 14px;
    top: -16px;
}

/* Rank 2 - Silver */
.rummy-podium-card.podium-rank-2 .podium-badge {
    background: linear-gradient(135deg, #CFD8DC, #78909C);
}

/* Rank 3 - Bronze */
.rummy-podium-card.podium-rank-3 .podium-badge {
    background: linear-gradient(135deg, #FFAB40, #E64A19);
}

.podium-app-icon {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 9px;
    flex-shrink: 0;
    background: var(--bg-light);
    display: block;
}

.rummy-podium-card.podium-rank-1 .podium-app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
}

.podium-app-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 5px;
    word-break: break-word;
}

.rummy-podium-card.podium-rank-1 .podium-app-name {
    font-size: 12px;
}

.podium-stars {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    line-height: 1;
}

.podium-safe {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 9px;
}

.podium-dl-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.38);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font);
}

.rummy-podium-card:hover .podium-dl-btn {
    background: linear-gradient(135deg, var(--accent-dark), #8B0000);
    box-shadow: 0 5px 14px rgba(229, 57, 53, 0.45);
}

/* ============================================================
   ALL RUMMY APPS LIST HEADING
   ============================================================ */
.rummy-list-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 11px;
    background: #fff;
    border-bottom: 2px solid var(--border);
    border-top: 1px solid var(--border);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

.rummy-list-heading-icon {
    font-size: 16px;
    line-height: 1;
}

/* ============================================================
   TABS CONTAINER
   ============================================================ */
.rummy-tabs-container {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.rummy-tabs-container::-webkit-scrollbar { display: none; }
.rummy-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-med);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
}
.rummy-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.rummy-tab:hover:not(.active) {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ============================================================
   APP LIST - HOMEPAGE BLOG LISTING
   ============================================================ */
.blog .hentry,
.archive .hentry {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    float: none !important;
    clear: both;
}

.rummy-app-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s ease;
    position: relative;
}

.rummy-app-item:hover {
    background: #F7F9FF;
}


.rummy-item-icon {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
    background: var(--bg-light);
}

.rummy-item-icon-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 13px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.rummy-item-details {
    flex: 1;
    min-width: 0;
}

.rummy-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font);
    display: block;
    text-decoration: none !important;
}

.rummy-item-name:hover {
    color: var(--primary);
}

.rummy-item-stats {
    font-size: 11.5px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.rummy-stat-sep {
    color: #ccc;
}

.rummy-item-bonus {
    font-weight: 600;
    color: var(--primary);
}

.rummy-item-withdraw {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--green);
    display: block;
}

.rummy-item-dl-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    box-shadow: 0 3px 9px rgba(229, 57, 53, 0.32);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font);
    text-decoration: none !important;
}

.rummy-item-dl-btn:hover {
    background: linear-gradient(135deg, var(--accent-dark), #8B0000);
    transform: scale(1.04);
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(229, 57, 53, 0.4);
}

/* Pagination */
.blog .pagination,
.archive .pagination,
.pagination {
    padding: 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--border);
}

.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--bg-light);
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 13px;
    margin: 0 3px;
    text-decoration: none;
    transition: all 0.18s;
    font-family: var(--font);
}

.page-numbers.current {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.35);
}

.page-numbers:hover {
    background: #DDEEFF;
    color: var(--primary) !important;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */
.single .site-main {
    background: #fff;
}

.single .entry-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: var(--text-dark) !important;
    padding: 14px 8px 4px !important;
    margin: 0 !important;
    font-family: var(--font) !important;
}

.single .entry-content {
    padding: 8px 8px 16px !important;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-med);
    font-family: var(--font);
}

.single .entry-content:not(:first-child),
.single .entry-summary:not(:first-child),
.single .page-content:not(:first-child) {
    margin-top: 0 !important;
}

.single .entry-content h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 8px;
    padding-bottom: 7px;
    border-bottom: 2px solid #EBF0FF;
}

.single .entry-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0 6px;
}

.single .entry-content ul,
.single .entry-content ol {
    padding-left: 20px;
}

.single .entry-content li {
    margin-bottom: 5px;
}

.single .entry-content img {
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
}

.single .entry-content a {
    color: var(--primary);
    font-weight: 600;
}

/* ── .rummy-download-button: restore the block's own white text.
      Our generic 'entry-content a' rule was overriding it.     ── */
.single .entry-content a.rummy-download-button,
.single .entry-content .rummy-download-button {
    color: #ffffff !important;
    font-weight: 700;
}


.single .post-thumbnail {
    padding: 16px !important;
    margin: 0 !important;
}

.single .post-thumbnail img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.single .entry-meta {
    display: none !important;
}

/* ============================================================
   RELATED APPS (after post content)
   ============================================================ */
.related-rummy-apps-container {
    margin: 14px 0 20px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.related-apps-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 11px 14px;
    text-align: center;
}

.related-apps-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    font-family: var(--font);
}

.related-apps-list {
    display: flex;
    flex-direction: column;
}

.related-app-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    transition: background 0.15s;
}

.related-app-item:last-child {
    border-bottom: none;
}

.related-app-item:hover {
    background: #F7F9FF;
}

.app-rank {
    display: none;
}

/* hidden — icon is leftmost element */
.app-icon img {
    width: 52px;
    height: 52px;
    border-radius: 11px;
    object-fit: cover;
    margin-right: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background: var(--bg-light);
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark) !important;
    /* override single .entry-content heading rules */
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font);
}

.app-min-withdraw {
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
    margin: 0;
}

.app-bonus {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.app-download-btn .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff !important;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--font);
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.28);
    transition: all 0.2s;
    text-decoration: none;
}

.app-download-btn .btn-download:hover {
    background: linear-gradient(135deg, var(--accent-dark), #8B0000);
    transform: scale(1.04);
    color: #fff !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--text-dark) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    text-align: center;
    padding: 18px 16px !important;
    font-size: 11.5px;
    font-family: var(--font);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {

    .main-title,
    .main-title a {
        font-size: 19px !important;
    }

    .main-title a::before {
        width: 28px;
        height: 28px;
    }

    .rummy-podium-card.podium-rank-1 .podium-app-icon {
        width: 72px;
        height: 72px;
    }

    .podium-app-icon {
        width: 60px;
        height: 60px;
    }

    .podium-app-name {
        font-size: 10px;
    }

    .rummy-tab {
        font-size: 11.5px;
        min-width: 80px;
        padding: 9px 5px;
    }

    .rummy-item-dl-btn {
        font-size: 11px;
        padding: 7px 11px;
    }

    .rummy-item-name {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .inside-header {
        padding: 8px 12px !important;
    }

    .separate-containers .inside-article,
    .separate-containers .comments-area,
    .separate-containers .page-header,
    .separate-containers .paging-navigation,
    .one-container .site-content,
    .inside-page-header {
        padding: 10px 0 !important;
    }
}