/* Play Store Style CSS */
:root {
    --primary-color: #34A853;
    --secondary-color: #4285F4;
    --accent-color: #EA4335;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-secondary: #f8f9fa;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --border-color: #dadce0;
    --separator: #e8eaed;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #34A853 0%, #4285F4 100%);
    --play-gradient: linear-gradient(135deg, #34A853 0%, #34A853 100%);
}

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--separator);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-nav {
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumb span {
    cursor: pointer;
    transition: color 0.2s ease;
}

.breadcrumb span:hover {
    color: var(--text-primary);
}

.breadcrumb i {
    font-size: 10px;
    opacity: 0.6;
}

/* Main Content */
.main-content {
    padding: 20px 0 100px;
    min-height: calc(100vh - 120px);
}

/* App Header */
.app-header {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.app-info {
    display: flex;
    gap: 16px;
    flex: 1;
}

.app-icon {
    flex-shrink: 0;
}

.icon {
    width: 132px;
    height: 132px;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.app-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.developer {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #FF9500;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
}

.reviews-count {
    font-size: 15px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.app-size {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 400;
}

.app-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.install-btn {
    background: var(--play-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(52, 168, 83, 0.25);
    min-width: 140px;
    justify-content: center;
    text-transform: none;
    font-family: inherit;
}

.install-btn:hover {
    background: #2d8f47;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 168, 83, 0.35);
}

.install-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.25);
}

.install-btn .play-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 2px;
    color: white;
    font-size: 16px;
    font-weight: 900;
    padding: 0;
}

.install-btn i {
    font-size: 18px;
}

.app-actions-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
}

.age-rating {
    background: var(--text-secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 11px;
}

.compatibility {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Screenshots Section */
.screenshots-section {
    margin-bottom: 20px;
    background: var(--surface);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 2px 16px var(--shadow);
}

.screenshots-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshots-carousel::-webkit-scrollbar {
    height: 3px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: var(--separator);
    border-radius: 2px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 2px;
}

.screenshot {
    flex-shrink: 0;
    width: 220px;
    height: 390px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

/* App Description */
.app-description {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px var(--shadow);
}

.description-preview {
    margin-bottom: 24px;
}

.description-preview p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.feature-category h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-category ul {
    list-style: none;
}

.feature-category li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 17px;
    color: var(--text-primary);
    line-height: 1.4;
}

.feature-category li i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 16px;
}

/* App Info Table */
.app-info-table {
    background: var(--surface);
    border-radius: 18px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px var(--shadow);
}

.info-row {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid var(--separator);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 120px;
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    flex: 1;
    font-size: 17px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.developer-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.developer-link:hover {
    background-color: rgba(0, 122, 255, 0.1);
}

/* Privacy Section */
.privacy-section {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px var(--shadow);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.privacy-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--surface-secondary);
    border-radius: 12px;
    border: 1px solid var(--separator);
}

.privacy-item i {
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-top: 2px;
}

.privacy-text strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.privacy-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.4;
}



/* What's New */
.whats-new-section {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 100px;
    box-shadow: 0 2px 16px var(--shadow);
}

.whats-new-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.whats-new-content ul {
    list-style: none;
    padding-left: 0;
}

.whats-new-content li {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.whats-new-content li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Bottom CTA */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--separator);
    padding: 16px 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.install-btn.bottom {
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .app-info {
        flex-direction: column;
        align-items: center;
    }
    
    .install-btn {
        width: 100%;
    }
    
    .app-actions {
        align-items: center;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .screenshots-carousel {
        gap: 12px;
    }
    
    .screenshot {
        width: 200px;
        height: 355px;
    }
    
    .install-btn.bottom {
        margin: 0 16px;
        padding: 16px 20px;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .icon {
        width: 100px;
        height: 100px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 16px;
        border-radius: 14px;
    }
    
    .app-title {
        font-size: 22px;
    }
    
    .app-description,
    .app-info-table,
    .privacy-section,
    .whats-new-section {
        border-radius: 14px;
        padding: 16px;
    }
    
    .screenshots-section {
        border-radius: 14px;
        padding: 12px;
    }
    
    .screenshot {
        width: 180px;
        height: 320px;
        border-radius: 12px;
    }
    
    .info-row {
        padding: 12px 16px;
    }
    
    .info-label {
        flex: 0 0 100px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-content > * {
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-content > *:nth-child(2) {
    animation-delay: 0.1s;
}

.main-content > *:nth-child(3) {
    animation-delay: 0.2s;
}

.main-content > *:nth-child(4) {
    animation-delay: 0.3s;
}

.main-content > *:nth-child(5) {
    animation-delay: 0.4s;
}

.app-header {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--separator);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}