/* assets/css/style.css */

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Pure white theme */
    color: #111111;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }

/* Card Box Layout */
.app-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 1000px; /* Highly readable width */
    margin: 0 auto;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none; /* Removed shadow for seamless white look */
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .app-container {
        margin: 0 auto;
        border-radius: 0;
    }
}

/* Header & Nav */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: transparent;
}
.logo h2 { margin: 0; color: #111111; font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.menu-btn, .search-trigger-btn {
    background: none; border: none; font-size: 20px; cursor: pointer; color: #111111; padding: 0;
}
.search-bar {
    display: none; padding: 10px; background: #2d8a2a;
}
.search-bar.active { display: block; }
.search-bar form {
    display: flex; background: #fff; border-radius: 4px; overflow: hidden;
}
.search-bar input {
    flex: 1; border: none; padding: 8px 12px; outline: none; color: #333; font-size: 14px;
}
.search-bar button {
    background: transparent; border: none; padding: 0 15px; cursor: pointer; color: #666;
}

/* Sidebar Menu */
.nav-menu {
    position: fixed;
    top: 0; left: -320px;
    width: 300px; height: 100vh;
    background: #ffffff;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100000;
    overflow-y: auto;
}
.nav-menu.active { left: 0; }
.close-btn { margin: 15px; background: none; border: none; font-size: 20px; cursor: pointer; color: #111; }
.nav-links { list-style: none; padding: 0; margin: 0; }
.nav-links li a {
    display: block; padding: 15px 20px; color: #333; border-bottom: 1px solid #eee;
}
.nav-links li a i { margin-right: 10px; color: #39a936; }
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 99999; display: none;
}
.overlay.active { display: block; }

/* Main Content */
.main-content { background: #ffffff; }

/* Tabs */
.tab-navigation-wrapper {
    display: flex; justify-content: space-around; background: #ffffff; border-bottom: 1px solid #f0f0f0; margin-top: 10px;
}
.tab-trigger-btn {
    flex: 1; background: none; border: none; padding: 15px; font-size: 15px; font-weight: 600; color: #888; cursor: pointer; transition: color 0.2s;
}
.tab-trigger-btn.is-active-tab {
    color: #111111;
    border-bottom: 2px solid #111111;
}

/* App List Grid */
.tab-content { padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.apk-grid-item { padding: 15px; border: 1px solid #eaeaea; border-radius: 12px; background: #fff; transition: box-shadow 0.2s, border-color 0.2s; }
.apk-grid-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.04); border-color: #ddd; }
.grid-row { display: flex; justify-content: space-between; align-items: center; }
.img-ratio { width: 60px; height: 60px; flex-shrink: 0; position: relative; }
.app-badge {
    position: absolute; top: -5px; left: -5px; background: #111; color: #fff; font-size: 10px; font-weight: bold; padding: 3px 6px; border-radius: 4px; z-index: 2;
}
.img-ratio img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; border: 1px solid #f5f5f5; }
.grid-text-box { flex: 1; margin: 0 15px; overflow: hidden; }
.grid-item-title { display: block; font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-item-bonus { margin: 0 0 3px 0; font-size: 12px; font-weight: 600; color: #555; }
.grid-item-withdrawal { font-size: 12px; font-weight: 600; color: #10b981; }
.apk-grid-download {
    background: #111111; color: #ffffff; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 13px; text-align: center; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.apk-grid-download:hover { background: #333; }
.apk-grid-download i { margin-right: 5px; font-size: 12px; }

/* Footer */
.footer-links-section { display: none; }
.site-footer { text-align: center; padding: 20px; background: #fff; font-size: 12px; color: #777; }

/* Banner */
.banner-section { margin: 10px; border-radius: 10px; overflow: hidden; }
.main-banner { width: 100%; height: auto; border-radius: 10px; display: block; object-fit: cover; }

/* Podium Section - PREMIUM CLEAN BEAST */
.podium-section { padding: 40px 20px 20px 20px; background: #ffffff; border-radius: 16px; margin: 20px; border: 1px solid #eaeaea; position: relative; }
.podium-container { display: flex; align-items: flex-end; justify-content: center; gap: 15px; position: relative; z-index: 1; }
.podium-item { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; transition: transform 0.2s ease; }
.podium-item:hover { transform: translateY(-5px); }

.podium-icon-wrapper { width: 80px; height: 80px; position: relative; z-index: 10; margin-bottom: -20px; border-radius: 20px; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.08); padding: 4px; }
.podium-icon-wrapper img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }

.podium-1 .podium-icon-wrapper { width: 100px; height: 100px; margin-bottom: -30px; padding: 5px; border: 2px solid #FFD700; box-shadow: 0 12px 25px rgba(255, 215, 0, 0.2); }

.podium-ribbon {
    position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    z-index: 11;
}
.podium-2 .podium-ribbon { background: #94a3b8; color: #fff; }
.podium-1 .podium-ribbon { background: #FFD700; color: #111; font-size: 12px; padding: 5px 20px; }
.podium-3 .podium-ribbon { background: #b45309; color: #fff; }

.podium-block {
    width: 100%; padding-top: 45px; padding-bottom: 20px; display: flex; flex-direction: column; justify-content: flex-start;
    border-radius: 16px; background: #fdfdfd; border: 1px solid #f0f0f0;
}
.podium-2 .podium-block { height: 110px; border-bottom: 4px solid #94a3b8; }
.podium-1 .podium-block { height: 140px; position: relative; z-index: 5; background: #fff; border-bottom: 4px solid #FFD700; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.podium-3 .podium-block { height: 95px; border-bottom: 4px solid #b45309; }

.podium-name { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 10px; line-height: 1.2; }
.podium-1 .podium-name { font-size: 16px; margin-top: 8px; }

.podium-download-text { 
    background: #111; color: #fff;
    font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; 
    display: inline-block; margin: 0 auto; padding: 8px 18px; border-radius: 20px;
    transition: background 0.2s ease;
}
.podium-download-text:hover { background: #333; }

.podium-trusted { font-size: 10px; font-weight: 700; margin-top: auto; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }

/* Telegram Banner New */
.telegram-banner-new {
    margin: 20px; background: #fafafa; border: 1px solid #eaeaea; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.telegram-left { color: #111; font-weight: 700; font-size: 15px; display: flex; align-items: center; }
.telegram-left i { margin-right: 12px; font-size: 20px; color: #0088cc; }
.telegram-right-btn {
    background: #111; color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 700; display: flex; align-items: center; transition: background 0.2s;
}
.telegram-right-btn:hover { background: #333; }
.telegram-right-btn i { margin-right: 8px; }

/* Section Divider */
.section-divider {
    display: flex; align-items: center; text-align: center; margin: 30px 20px 10px 20px;
}
.divider-line { flex: 1; border-bottom: 1px solid #eaeaea; }
.divider-text { padding: 0 15px; color: #888; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* --- APP DETAILS PAGE --- */
.app-details-page {
    background: #ffffff; 
    min-height: 100vh;
}
.app-header-meta {
    background: #ffffff;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}
.app-header-left {
    display: flex;
    align-items: center;
}
.details-app-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.details-app-info h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 800;
    color: #111;
}
.details-trusted {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.app-header-right {
    display: flex;
    gap: 25px;
}
.meta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-val {
    font-weight: 700;
    font-size: 16px;
    color: #111;
}
.stat-lbl {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-rating-row {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}
.rating-stars {
    color: #111;
    font-size: 14px;
    font-weight: 700;
}
.review-count {
    color: #888;
    font-size: 12px;
    margin-left: 8px;
}
.pegi-badge {
    font-size: 12px;
    font-weight: 700;
    color: #111;
    display: flex;
    align-items: center;
}
.pegi-18 {
    background: #111;
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 11px;
}

.app-download-action {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
}
.big-download-btn {
    display: block;
    background: #111;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 18px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.big-download-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.horizontal-apps-section {
    background: #fff;
    padding: 20px 0;
    margin-top: 10px;
}
.section-subtitle {
    margin: 0 20px 15px 20px;
    font-size: 12px;
    color: #666;
}
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 20px;
    gap: 15px;
    scrollbar-width: none; /* Firefox */
}
.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.h-app-item {
    text-align: center;
    text-decoration: none;
    min-width: 80px;
}
.h-app-name {
    font-size: 11px;
    color: #333;
    font-weight: bold;
    margin-bottom: 3px;
    white-space: nowrap;
}
.h-app-bonus {
    font-size: 11px;
    color: #666;
}

/* FAQ Accordion */
.faq-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 20px 20px 20px;
    color: #5a189a;
    font-weight: bold;
    font-style: italic;
    font-size: 16px;
}
.faq-divider span {
    width: 50px;
    height: 2px;
    background: #5a189a;
    margin: 0 15px;
}
.faq-accordion {
    padding: 0 20px;
}
.faq-item {
    background: #f8f9fa;
    border: 2px solid #333;
    border-radius: 30px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 0 #333;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}
.faq-question span {
    font-weight: bold;
    margin-right: 10px;
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}
.faq-item.active .faq-answer {
    padding: 0 20px 15px 20px;
    max-height: 200px;
}

/* New Dark Footer -> Turned into Pure White Minimal Footer */
.new-dark-footer {
    background: #ffffff;
    color: #111;
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid #eaeaea;
    position: relative;
    margin-top: 60px;
}
.footer-connect p {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #888;
    text-transform: uppercase;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.social-icons a {
    color: #111;
    background: #f9f9f9;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #eaeaea;
}
.social-icons a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    transform: translateY(-3px);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.footer-btn {
    border: 1px solid #eaeaea;
    border-radius: 30px;
    padding: 12px 24px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    transition: all 0.2s;
}
.footer-btn i {
    color: #888;
    transition: color 0.2s;
}
.footer-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}
.footer-btn:hover i {
    color: #fff;
}
.footer-copyright {
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-copyright b {
    color: #111;
    font-weight: 700;
}

/* --- PLAY STORE REDESIGN --- */
.ps-container {
    background: #fff;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    padding-bottom: 30px;
}
.ps-header {
    display: flex;
    flex-direction: column;
    padding: 24px;
    align-items: center;
    text-align: center;
}
.ps-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    object-fit: cover;
}
.ps-info {
    flex: 1;
}
.ps-title {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 500;
    color: #202124;
    line-height: 1.2;
}
.ps-developer {
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.verified-icon {
    font-size: 12px;
}
.ps-tags {
    color: #5f6368;
    font-size: 12px;
}

.ps-stats-scroll {
    display: flex;
    padding: 0 24px 20px 24px;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.ps-stats-scroll::-webkit-scrollbar {
    display: none;
}
.ps-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.stat-top {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.stat-bot {
    font-size: 12px;
    color: #5f6368;
    white-space: nowrap;
}
.stat-divider {
    height: 24px;
    width: 1px;
    background: #e8eaed;
    margin: 0 15px;
}

.ps-action {
    padding: 0 24px 24px 24px;
    text-align: center;
}
.ps-install-btn {
    display: block;
    background: #01875f;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 12px 0;
    border-radius: 24px;
    text-decoration: none;
    transition: background 0.2s;
}
.ps-install-btn:hover {
    background: #00704e;
}
.ps-bonus-tag {
    font-size: 12px;
    color: #01875f;
    margin-top: 10px;
    font-weight: 500;
}

.ps-section {
    padding: 0 0 24px 0;
}
.ps-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 20px;
    text-align: center;
}
.ps-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
    text-align: center;
    width: 100%;
}
.ps-section-header i {
    display: none;
}

.ps-about-content {
    padding: 0 24px;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.4;
    margin-bottom: 16px;
    text-align: center;
}
.ps-tags-row {
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.ps-tag {
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
}

.ps-cards-scroll {
    display: flex;
    padding: 0 24px;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
}
.ps-cards-scroll::-webkit-scrollbar {
    display: none;
}
.ps-card {
    min-width: 104px;
    max-width: 104px;
    text-decoration: none;
}
.ps-card-icon {
    width: 104px;
    height: 104px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}
.ps-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ps-card-size {
    font-size: 11px;
    color: #5f6368;
    margin-bottom: 2px;
}
.ps-card-rating {
    font-size: 11px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 2px;
}

.ps-faq-list {
    padding: 0 24px;
}
.ps-faq-item {
    border-bottom: 1px solid #e8eaed;
}
.ps-faq-item:last-child {
    border-bottom: none;
}
.ps-faq-q {
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ps-faq-a {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.ps-faq-item.active .ps-faq-a {
    padding-bottom: 16px;
    max-height: 150px;
}

/* --- LIVE SEARCH DROPDOWN --- */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    margin-right: 12px;
    object-fit: cover;
}

.search-result-item span {
    font-size: 14px;
    font-weight: 500;
}

.search-no-results {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Floating Share Buttons (Beast Theme) */
.custom-floating-share {
    position: fixed !important;
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 12px 8px !important;
    border: 1px solid #eaeaea !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}

.custom-floating-share a {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

.custom-floating-share a:hover {
    transform: scale(1.1) !important;
}

