:root {
    --google-green: #01875f;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    /* Lighter for footer */
    --border-color: #dadce0;
    --nav-height: 56px;
    --bottom-nav-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Header & Browser Bar */
.browser-bar {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.browser-bar .close-icon {
    font-size: 20px;
    margin-right: 16px;
    cursor: pointer;
}

.address-bar {
    flex: 1;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 20px;
    padding: 4px 16px;
    text-align: center;
    color: #3c4043;
    font-size: 13px;
}

.more-icon {
    margin-left: 16px;
    font-weight: bold;
}

/* Play Store Header */
.play-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-container img {
    height: 24px;
}

.logo-text {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .icon {
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

.profile-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-icon i {
    color: #fff;
    font-size: 24px;
    margin-top: 6px;
}

/* Main Content */
main {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* App Hero */
.app-hero {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.developer-name {
    color: var(--google-green);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.ads-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.install-btn {
    background-color: var(--google-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    height: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.install-btn:hover {
    background-color: #016e4e;
}

.install-btn:active {
    background-color: #015a3f;
}


/* Stats Section */
.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 24px 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--google-green);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Screenshots */
.screenshots-wrapper {
    overflow-x: auto;
    display: flex;
    gap: 12px;
    padding: 8px 0;
    scrollbar-width: none;
}

.screenshots-wrapper::-webkit-scrollbar {
    display: none;
}

.screenshot-img {
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
}

.arrow-right {
    color: var(--text-secondary);
}

.app-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.app-description b {
    color: var(--text-primary);
}

/* Similar Apps Grid */
.similar-apps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.similar-app-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.similar-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.similar-app-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.similar-app-dev {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer Styling */
footer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    padding: 48px 16px 24px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

.region-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    flex: 1;
    position: relative;
    padding-top: 4px;
}

.nav-item.active {
    color: #01875f;
    font-weight: 500;
}

.nav-item i {
    font-size: 20px;
    z-index: 2;
}

.nav-item .active-indicator {
    display: none;
    width: 64px;
    height: 32px;
    background: #e6f3ef;
    border-radius: 16px;
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.nav-item.active .active-indicator {
    display: block;
}

.nav-item span {
    z-index: 2;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }

    .browser-bar {
        display: none;
    }

    main {
        max-width: 800px;
        margin: 0 auto;
        padding-top: 40px;
    }

    .app-hero {
        gap: 32px;
    }

    .app-icon {
        width: 160px;
        height: 160px;
        border-radius: 24px;
    }

    .app-title {
        font-size: 32px;
    }

    .screenshot-img {
        height: 400px;
    }

    .stats-container {
        justify-content: flex-start;
        border: none;
        padding: 0;
        margin: 24px 0;
    }

    .stat-item {
        align-items: flex-start;
        text-align: left;
    }

    .stat-label {
        font-size: 12px;
    }

    .action-buttons {
        justify-content: flex-start;
        gap: 24px;
    }

    .install-btn {
        width: auto;
        min-width: 300px;
    }

    .app-description {
        margin-bottom: 40px;
    }

    .similar-apps-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}