:root {
    --primary-color: #01875f; /* Play Store Green */
    --bg-color: #ffffff;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --bg-hover: #f1f3f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
.play-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); /* Subtle shadow like native app sometimes has, or flat */
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-icon {
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

.header-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-icon, .menu-icon {
    font-size: 20px;
    color: var(--text-primary);
}

/* Main Container */
.app-details-container {
    margin-top: 56px; /* Header height */
    padding-bottom: 40px;
}

/* App Header */
.app-header-grid {
    display: flex;
    gap: 24px;
    padding: 24px 24px 0 24px;
    margin-bottom: 16px;
}

.app-icon-main {
    width: 72px;
    height: 72px;
    border-radius: 15px; /* Squircle feeling */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    object-fit: cover;
}

.app-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-title {
    font-size: 24px; /* Larger Play Store title */
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.dev-name {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2px;
}

.ad-badge {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Stats Scroll */
.stats-scroll-container {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    gap: 20px; /* Spacing between items */
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar */
}

.stats-scroll-container::-webkit-scrollbar {
    display: none;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 60px;
}

.stat-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.stat-caption {
    font-size: 11px;
    color: var(--text-secondary);
}

.star-tiny {
    font-size: 10px;
}

.separator {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    flex-shrink: 0;
}

.rating-badge {
    border: 1px solid var(--text-secondary);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 3px;
    font-weight: bold;
}

/* Install Button */
.install-section {
    padding: 0 24px 24px 24px;
}

.btn-install {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    border: none;
    border-radius: 8px; /* Standard Play Store button radius */
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-install:active {
    background-color: #00694a;
}

/* Screenshots */
.screenshots-section {
    margin-bottom: 24px;
}

.screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 24px;
    padding-bottom: 8px; /* Space for shadow */
    scrollbar-width: none; 
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshots-scroll img {
    height: 180px; /* Reduced height for mobile feel */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Content Sections */
.content-section {
    padding: 0 24px;
    margin-bottom: 32px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.arrow-right {
    font-size: 20px;
    color: var(--text-secondary);
}

.app-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Truncate visually to simulate 'read more' */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.tags-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.tag {
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 16px;
    white-space: nowrap;
}

/* Safety Section */
.description-small {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.safety-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.safety-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-primary);
}

.safety-row:last-child {
    margin-bottom: 0;
}

.safety-icon {
    width: 20px;
    text-align: center;
}

/* Ratings */
.rating-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.big-rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.rating-num {
    font-size: 48px;
    font-weight: 400; /* Thin look */
    color: var(--text-primary);
    line-height: 1;
}

.rating-stars {
    color: var(--primary-color);
    font-size: 10px;
    letter-spacing: -1px;
    margin-top: 4px;
}

.rating-bars-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.bar-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-line span {
    font-size: 11px;
    width: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.track {
    flex: 1;
    height: 8px; /* Thicker track like play store update */
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 4px;
}

/* Reviews */
.user-reviews {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.user-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.review-menu {
    color: var(--text-secondary);
    font-size: 16px;
}

.review-stars-date {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.review-stars-date .stars {
    color: var(--primary-color);
    font-size: 12px;
}

.review-stars-date .date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.see-all-reviews {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-top: 24px;
    cursor: pointer;
}
