/* Play Store-like styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
    color: #202124;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 16px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    color: #5f6368;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex: 1;
}

.nav-links a {
    color: #5f6368;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-links a:hover {
    background: #f1f3f4;
}

.nav-links a:first-child {
    color: #111827;
    font-weight: 500;
}

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

.search-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #f1f3f4;
}

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

/* App Hero Section */
.app-hero {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.app-hero-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.app-icon-large {
    width: 144px;
    height: 144px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    flex-shrink: 0;
    background: transparent;
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 28px;
    font-weight: 400;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.developer-link {
    color: #01875f;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.developer-link:hover {
    text-decoration: underline;
}

.app-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.badge {
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

/* Stats Bar */
.stats-bar {
    background: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 500;
    color: #111827;
}

.stat-value .star {
    color: #f4b400;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

/* Install Section */
.install-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #01875f;
    color: #fff;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

.install-btn:hover {
    background: #017a56;
}

.install-btn:active {
    transform: scale(0.98);
}

.install-note {
    color: #5f6368;
    font-size: 12px;
    margin-top: 12px;
}

/* Screenshots Section */
.screenshots-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 16px;
}

.screenshots-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}

.screenshots-slider::-webkit-scrollbar {
    height: 8px;
}

.screenshots-slider::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-slider::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

.screenshot {
    flex-shrink: 0;
    width: 200px;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: transparent;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.screenshot img.loaded,
.screenshot img[loading="lazy"].loaded {
    display: block;
}

/* Native lazy loading styles */
img[loading="lazy"] {
    display: block;
}

img[loading="lazy"].loaded {
    display: block;
}

/* App icon lazy loading */
.app-icon-large img,
.hnnXjf img {
    display: block;
}

.app-icon-large img.loaded,
.hnnXjf img.loaded {
    display: block;
}

/* About Section */
.about-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.about-content {
    color: #424547;
    font-size: 14px;
    line-height: 1.6;
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.about-content.expanded {
    max-height: none;
}

.about-content ul {
    margin-left: 20px;
    margin-top: 8px;
}

.about-content li {
    margin-bottom: 4px;
}

.show-more-btn {
    background: none;
    border: none;
    color: #01875f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
}

.show-more-btn:hover {
    color: #017a56;
}

/* Data Safety Section */
.data-safety-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.data-safety-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}

.safety-info {
    color: #5f6368;
    font-size: 12px;
    margin-bottom: 16px;
}

.safety-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.safety-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.safety-item svg {
    color: #5f6368;
    flex-shrink: 0;
}

.safety-text strong {
    display: block;
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
}

.safety-text p,
.safety-text ul {
    color: #5f6368;
    font-size: 13px;
    margin: 0;
}

.safety-text ul {
    margin-left: 16px;
    margin-top: 4px;
}

/* Ratings Section */
.ratings-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.ratings-overview {
    display: flex;
    gap: 32px;
    align-items: center;
}

.rating-big {
    text-align: center;
    padding-right: 32px;
    border-right: 1px solid #e0e0e0;
}

.rating-number {
    font-size: 48px;
    font-weight: 400;
    color: #111827;
}

.rating-stars {
    margin: 8px 0;
}

.rating-stars .star {
    color: #e0e0e0;
    font-size: 18px;
}

.rating-stars .star.filled {
    color: #f4b400;
}

.rating-count {
    color: #5f6368;
    font-size: 12px;
}

.rating-bars {
    flex: 1;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.rating-bar-row span {
    color: #5f6368;
    font-size: 12px;
    width: 12px;
}

.rating-bar {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #01875f;
    border-radius: 5px;
}

/* What's New Section */
.whats-new-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.whats-new-content {
    color: #424547;
    font-size: 14px;
}

.whats-new-content ul {
    margin-left: 20px;
    margin-top: 8px;
}

.whats-new-content li {
    margin-bottom: 4px;
}

/* App Info Section */
.app-info-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.app-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: #5f6368;
    font-size: 12px;
}

.info-value {
    color: #202124;
    font-size: 14px;
}

/* Developer Section */
.developer-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.developer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-item svg {
    color: #5f6368;
}

.contact-text strong {
    display: block;
    font-size: 14px;
    color: #202124;
}

.contact-text a {
    color: #01875f;
    text-decoration: none;
    font-size: 14px;
}

.contact-text a:hover {
    text-decoration: underline;
}

/* Similar Apps Section */
.similar-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.similar-apps {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}

.similar-app {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.similar-app:hover {
    background: #f1f3f4;
}

.similar-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    flex-shrink: 0;
}

.similar-app-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.similar-app-name {
    font-size: 14px;
    color: #202124;
}

.similar-app-rating {
    font-size: 12px;
    color: #5f6368;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 24px 16px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #202124;
}

.footer-copyright {
    color: #9aa0a6;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .app-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .ratings-overview {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rating-big {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-right: 0;
        padding-bottom: 16px;
    }
    
    .app-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-icon-large {
        width: 96px;
        height: 96px;
    }
    
    .app-title {
        font-size: 22px;
    }
    
    .screenshot {
        width: 160px;
        height: 285px;
    }
}
