/* ===== GOOGLE PLAY STORE MOBILE REPLICA STYLES ===== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #202124;
    line-height: 1.5;
    max-width: 390px;
    margin: 0 auto;
    padding-bottom: 80px; /* Space for sticky bar */
}

/* ===== APP HEADER SECTION ===== */
.app-header {
    padding: 16px;
    background-color: #ffffff;
}

.app-header-content {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-name {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #202124;
    margin-bottom: 4px;
}

.app-developer {
    font-size: 12px;
    color: #01875f;
    font-weight: 500;
}

/* Metadata Row */
.metadata-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5f6368;
}

.rating-star {
    font-size: 14px;
}

.rating-value {
    font-weight: 500;
    color: #202124;
}

.metadata-value {
    font-weight: 500;
    color: #202124;
}

.metadata-label {
    color: #5f6368;
}

.metadata-chip {
    padding: 4px 8px;
    background-color: #e8f0fe;
    border-radius: 4px;
    font-size: 11px;
    color: #1967d2;
    font-weight: 500;
}

/* Install Button */
.install-btn {
    width: 100%;
    padding: 12px;
    background-color: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.install-btn:active {
    background-color: #6d28d9;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-section {
    padding: 16px 0;
    background-color: #ffffff;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

.screenshots-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 16px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

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

.screenshot-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.screenshot-image {
    width: 180px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 16px;
    background-color: #ffffff;
}

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

.about-content {
    margin-bottom: 16px;
}

.about-content p {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 8px;
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-chip {
    padding: 6px 12px;
    background-color: #f1f3f4;
    border-radius: 16px;
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid #e8eaed;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

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

.rating-number {
    font-size: 48px;
    font-weight: 500;
    color: #202124;
    line-height: 1;
}

.rating-stars {
    font-size: 12px;
    color: #ffa000;
}

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

/* Review Cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7c3aed;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.review-rating {
    font-size: 12px;
    color: #ffa000;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.review-text {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5f6368;
}

.helpful-btn {
    padding: 6px 16px;
    background-color: transparent;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.helpful-btn:active {
    background-color: #f1f3f4;
}

/* ===== LINKS SECTION ===== */
.links-section {
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid #e8eaed;
}

.links-list {
    display: flex;
    flex-direction: column;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e8eaed;
    text-decoration: none;
    color: #202124;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

.link-item:active {
    background-color: #f1f3f4;
}

.arrow {
    font-size: 20px;
    color: #5f6368;
}

/* ===== STICKY INSTALL BAR ===== */
.sticky-install-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    background-color: #ffffff;
    border-top: 1px solid #e8eaed;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sticky-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sticky-app-info {
    flex: 1;
}

.sticky-app-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.sticky-install-btn {
    padding: 8px 24px;
    background-color: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sticky-install-btn:active {
    background-color: #6d28d9;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 360px) {
    .app-name {
        font-size: 18px;
    }
    
    .screenshot-image {
        width: 160px;
        height: 280px;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}
