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

:root {
    --rp-bg: #f0f2f5;
    --rp-card: #ffffff;
    --rp-text: #1a1a2e;
    --rp-text-sec: #555770;
    --rp-accent: #00b4d8;
    --rp-accent-hover: #0096b7;
    --rp-gold: #f5b731;
    --rp-border: #e2e4ea;
    --rp-header-bg: #111118;
    --rp-footer-bg: #111118;
    --rp-dropdown-bg: #1e1e2a;
}

body { font-family: 'Inter', sans-serif; background: var(--rp-bg); color: var(--rp-text); }

/* ===== HEADER ===== */
.site-header { background: var(--rp-header-bg); }
.main-title a, .site-title a { color: #fff; text-decoration: none; }
.main-navigation .main-nav > ul > li > a { color: rgba(255,255,255,0.85); text-transform: uppercase; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; }
.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a { color: var(--rp-accent); }

/* ===== DROPDOWN FIX ===== */
.main-navigation .main-nav ul ul { background: var(--rp-dropdown-bg); border: 1px solid rgba(255,255,255,0.08); }
.main-navigation .main-nav ul ul li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.main-navigation .main-nav ul ul a { color: rgba(255,255,255,0.8); font-size: 0.8rem; padding: 10px 16px; }
.main-navigation .main-nav ul ul a:hover { color: var(--rp-accent); background: rgba(255,255,255,0.04); }
.menu-toggle, .menu-toggle:hover, .menu-toggle:focus { background: transparent; color: #fff; }
.main-navigation > div { background: transparent; }

/* ===== LAYOUT ===== */
.site-content { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
#primary { width: 100%; }
.inside-article { padding: 0; }

/* ===== HERO ===== */
.rp-hero { text-align: center; padding: 30px 20px 10px; max-width: 750px; margin: 0 auto; }
.rp-hero h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; color: var(--rp-text); }
.rp-hero p { font-size: 0.88rem; color: var(--rp-text-sec); line-height: 1.6; }

/* ===== GRID ===== */
body.blog #primary .site-main,
body.archive #primary .site-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 10px 0; }

/* ===== CARDS ===== */
body.blog article.post,
body.archive article.post { margin-bottom: 0; }

body.blog article.post .inside-article,
body.archive article.post .inside-article {
    background: var(--rp-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
body.blog article.post:hover .inside-article,
body.archive article.post:hover .inside-article {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

body.blog .entry-header,
body.archive .entry-header { padding: 8px 12px 2px; }

body.blog .entry-title,
body.archive .entry-title { font-size: 1.05rem; font-weight: 700; margin: 0; }

body.blog .entry-title a,
body.archive .entry-title a { color: var(--rp-text); text-decoration: none; }

body.blog .post-image,
body.archive .post-image { margin: 0; padding: 0; line-height: 0; }

body.blog .post-image img,
body.archive .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    display: block;
}

body.blog .entry-summary,
body.archive .entry-summary {
    padding: 6px 12px 12px;
    font-size: 0.82rem;
    color: var(--rp-text-sec);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex-grow: 1;
}

/* ===== HIDE META ON CARDS ===== */
body.blog .entry-meta,
body.archive .entry-meta,
body.blog footer.entry-meta,
body.archive footer.entry-meta { display: none; }

/* ===== SINGLE POST ===== */
.single .site-main { max-width: 900px; margin: 0 auto; }
.single .inside-article { padding: 20px 0; }
.single .entry-content img { display: block; margin: 15px auto; max-width: 100%; height: auto; }
.single .entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.single .entry-content td,
.single .entry-content th { border: 1px solid var(--rp-border); padding: 10px; text-align: center; }
.single .entry-content thead td,
.single .entry-content th { background: #f0f0f5; font-weight: 700; }
.single .comments-area { display: none; }

/* ===== HIDE FEATURED IMAGE ON SINGLE ===== */
.single .featured-image,
.single .page-header-image-single,
.single .post-image { display: none; }

/* ===== VISIT SITE BUTTON ===== */
.rp-visit-btn-wrap { text-align: center; margin: 30px 0 15px; }
.rp-visit-btn {
    display: inline-block;
    padding: 16px 55px;
    background: var(--rp-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}
.rp-visit-btn:hover { background: var(--rp-accent-hover); color: #fff; }

/* ===== CUSTOM POST NAV ===== */
.rp-post-nav { text-align: center; margin: 20px 0 10px; padding: 20px 0; border-top: 1px solid var(--rp-border); }
.rp-nav-cat {
    display: inline-block;
    padding: 10px 30px;
    background: var(--rp-header-bg);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}
.rp-nav-cat:hover { background: #2a2a3e; color: var(--rp-accent); }

/* ===== HIDE DEFAULT POST NAV ===== */
.single .post-navigation,
.single .paging-navigation { display: none; }

/* ===== ACF TABLE ===== */
.rp-acf-table { margin: 20px 0; }
.rp-acf-table table { width: 100%; border-collapse: collapse; }
.rp-acf-table td { border: 1px solid var(--rp-border); padding: 8px 12px; }
.rp-acf-table a { color: var(--rp-accent); }

/* ===== FOOTER ===== */
.rp-footer { background: var(--rp-footer-bg); color: #fff; text-align: center; padding: 40px 20px; margin-top: 40px; }
.rp-footer-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; color: var(--rp-accent); }
.rp-footer-desc { color: #aaa; font-size: 0.85rem; margin-bottom: 15px; }
.rp-footer-nav { margin-bottom: 10px; }
.rp-footer-nav a { color: var(--rp-gold); text-decoration: none; }
.rp-footer-nav a:hover { color: #fff; }
.rp-footer-copy { color: #666; font-size: 0.75rem; margin-top: 15px; }
.site-info { display: none; }
.site-footer { padding: 0; margin: 0; }
#page { margin-bottom: 0; padding-bottom: 0; }
.footer-widgets-container { display: none; }

/* ===== AGE GATE ===== */
#rp-age-gate { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 999999; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; font-family: Inter, sans-serif; text-align: center; }
#rp-age-gate h2 { font-size: 1.8rem; margin-bottom: 10px; }
#rp-age-gate p { color: #aaa; margin-bottom: 20px; }
#rp-age-gate button { padding: 12px 40px; background: var(--rp-accent); color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
#rp-age-gate button:hover { background: var(--rp-accent-hover); }

/* ===== PAGINATION ===== */
.pagination, .nav-links { text-align: center; padding: 20px 0; }
.nav-links .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 6px; background: var(--rp-card); color: var(--rp-text); text-decoration: none; font-size: 0.85rem; }
.nav-links .page-numbers.current { background: var(--rp-accent); color: #fff; }

/* ===== PAGES ===== */
.page .inside-article { max-width: 900px; margin: 0 auto; padding: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    body.blog #primary .site-main,
    body.archive #primary .site-main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    body.blog #primary .site-main,
    body.archive #primary .site-main { grid-template-columns: 1fr; }
    .rp-hero h1 { font-size: 1.3rem; }
    .rp-hero { padding: 20px 15px 5px; }
    .single .inside-article { padding: 15px 10px; }
    .main-navigation .main-nav > ul > li > a { font-size: 0.85rem; }
}

/* ===== DROPDOWN FIX URGENT ===== */
.main-navigation ul ul { background: #1e1e2a !important; }
.main-navigation ul ul li a { color: #ffffff !important; font-size: 0.82rem !important; padding: 10px 16px !important; }
.main-navigation ul ul li a:hover { color: #00b4d8 !important; background: rgba(255,255,255,0.05) !important; }
.main-navigation ul ul li { border-bottom: 1px solid rgba(255,255,255,0.06); }

/* ===== BEST 10 CHARTS GRID ===== */
.rp-charts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.rp-chart-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.rp-chart-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.rp-chart-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.rp-chart-card h3 a { color: #00b4d8; text-decoration: none; }
.rp-chart-card h3 a:hover { color: #0096b7; }
.rp-chart-card p { font-size: 0.85rem; color: #555770; margin: 0; line-height: 1.5; }
@media (max-width: 768px) { .rp-charts-grid { grid-template-columns: 1fr; } }

/* ===== CHART CARD IMAGES ===== */
.rp-chart-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

/* ===== TOP 10 VISIT BUTTONS ===== */
.rp-top10-visit { text-align: center; margin: 15px 0 25px; }
.rp-top10-visit a { display: inline-block; padding: 10px 30px; background: #00b4d8; color: #fff; text-decoration: none; border-radius: 6px; font-weight: 600; font-size: 0.95rem; transition: background 0.2s; }
.rp-top10-visit a:hover { background: #0096b7; color: #fff; }

/* ===== TOP 10 CLICKABLE IMAGES ===== */
.page .entry-content a > img { transition: transform 0.2s, filter 0.2s; cursor: pointer; }
.page .entry-content a > img:hover { transform: scale(1.02); filter: brightness(0.7); }
.page .entry-content a.rp-img-link { position: relative; display: inline-block; }
.page .entry-content a.rp-img-link::after { content: "Visit Site \2192"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,180,216,0.9); color: #fff; padding: 10px 25px; border-radius: 6px; font-weight: 700; font-size: 0.95rem; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.page .entry-content a.rp-img-link:hover::after { opacity: 1; }
.page .entry-content a.rp-img-link:hover img { filter: brightness(0.5); }

/* ===== TOP 10 IMAGES CENTER ===== */
.page .entry-content p > img, .page .entry-content p > a.rp-img-link { display: block; margin: 15px auto; text-align: center; }
.page .entry-content p:has(> img), .page .entry-content p:has(> a.rp-img-link) { text-align: center; }

/* ===== HIDE CATEGORY META ON SINGLE ===== */
.single .entry-meta, .single footer.entry-meta { display: none; }

/* ===== CATEGORY DESCRIPTION FULL WIDTH ===== */
body.archive .page-header { grid-column: 1 / -1; width: 100%; margin-bottom: 10px; }
body.archive .page-header .archive-title { font-size: 1.5rem; font-weight: 800; }
body.archive .page-header .taxonomy-description { font-size: 0.9rem; color: #555770; }

/* ===== SEO TEXT HOMEPAGE ===== */
.rp-seo-text { max-width: 900px; margin: 40px auto 20px; padding: 30px; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.rp-seo-text h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; color: #1a1a2e; }
.rp-seo-text p { font-size: 0.88rem; color: #555770; line-height: 1.7; margin-bottom: 12px; }
.rp-seo-text p:last-child { margin-bottom: 0; }
