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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

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

.play-logo {
    width: 24px;
    height: 24px;
}

.play-text {
    font-size: 20px;
    font-weight: 500;
    color: #01875f;
    font-family: 'Product Sans', 'Roboto', sans-serif;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #5f6368;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 14px;
    position: relative;
}

.nav-link:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.nav-link.active {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: #f1f3f4;
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

.search-icon {
    color: #5f6368;
    margin-right: 8px;
    font-size: 20px;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #202124;
}

.search-input::placeholder {
    color: #5f6368;
}

.search-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    margin-left: 8px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #e8eaed;
}



/* Hero Section */
.hero {
    background: #fff;
    padding: 32px 0;
    border-bottom: 1px solid #e8eaed;
}

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

.hero-content {
    max-width: 800px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #174ea6;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #5f6368;
    font-size: 18px;
}

.breadcrumb-current {
    color: #5f6368;
}

.app-header-hero {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    align-items: center;
}

.app-icon-hero {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

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

.hero-title {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: #202124;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.app-developer-hero {
    color: #1a73e8;
    font-size: 15px;
    margin-bottom: 16px;
    cursor: pointer;
    font-weight: 500;
}

.app-developer-hero:hover {
    text-decoration: underline;
}

.app-meta-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f4;
}

.rating-hero {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars-hero {
    display: flex;
    gap: 1px;
}

.stars-hero .star {
    color: #fbbc04;
    font-size: 18px;
}

.rating-text-hero {
    font-weight: 500;
    color: #202124;
    font-size: 16px;
}

.reviews-count-hero {
    color: #5f6368;
    font-size: 14px;
    margin-left: 4px;
}

.downloads-hero {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
}

.size-hero {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
}

.app-tags-hero {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d2e3fc;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.install-btn-hero {
    background: #01875f;
    color: white;
    border: none;
    padding: 18px 60px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(1, 135, 95, 0.4);
    text-decoration: none;
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.install-btn-hero:hover {
    background: #016d4f;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(1, 135, 95, 0.6);
    scale: 1.05;
}

.share-btn-hero {
    background: #f1f3f4;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #5f6368;
}

.share-btn-hero:hover {
    background: #e8eaed;
    transform: translateY(-1px);
}

.wishlist-btn-hero {
    background: #f1f3f4;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #5f6368;
}

.wishlist-btn-hero:hover {
    background: #e8eaed;
    transform: translateY(-1px);
}

/* App Details */
.app-details {
    background: white;
    padding: 40px 0;
}

.app-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 48px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 16px;
}

.app-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-developer {
    color: #5f6368;
    margin-bottom: 16px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.star {
    color: #fbbc04;
    font-size: 20px;
}

.rating-text {
    color: #5f6368;
    font-size: 0.875rem;
}

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

.category-tag {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.app-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.install-btn-large {
    background: #34a853;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.install-btn-large:hover {
    background: #2d8f47;
}

.share-btn {
    background: #f1f3f4;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-btn:hover {
    background: #e8eaed;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #202124;
}

.view-all-btn {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s;
}

.view-all-btn:hover {
    background-color: #f1f3f4;
    transform: translateY(-1px);
}

.screenshots-container {
    overflow-x: auto;
    padding-bottom: 16px;
    margin: 0 -20px;
    padding: 0 20px;
}

.screenshots {
    display: flex;
    gap: 20px;
    min-width: max-content;
}

.screenshot {
    width: 220px;
    flex-shrink: 0;
}

.screenshot-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 100%;
    height: 440px;
    background: #000;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 1;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.screenshot {
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-4px);
}



/* Description */
.description-section {
    margin-bottom: 48px;
    padding: 32px 0;
    border-bottom: 1px solid #e8eaed;
}

.description-section h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: #202124;
}

.description-content h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 32px 0 16px 0;
    color: #202124;
}

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

.description-content li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 15px;
    line-height: 1.6;
}

.description-content li:last-child {
    border-bottom: none;
}

/* Permissions */
.permissions-section {
    padding: 32px 0;
}

.permissions-section h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: #202124;
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8eaed;
}

.permission-icon {
    color: #5f6368;
    font-size: 24px;
}

.permission-name {
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.permission-desc {
    font-size: 0.875rem;
    color: #5f6368;
}



/* Footer */
.footer {
    background: #202124;
    color: white;
    padding: 48px 0 24px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #9aa0a6;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #3c4043;
    padding-top: 24px;
    text-align: center;
    color: #9aa0a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .search-container {
        order: 2;
        flex: 1;
        max-width: none;
        margin: 0;
    }
    

    
    .hero-content {
        max-width: 100%;
    }
    
    .app-header-hero {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .app-icon-hero {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }
    
    .app-meta-hero {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .app-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-actions {
        justify-content: center;
    }
    
    .screenshots {
        gap: 12px;
    }
    
    .screenshot {
        width: 180px;
    }
    
    .phone-frame {
        height: 360px;
    }
    
    .screenshot-image {
        object-fit: cover;
        object-position: top center;
    }
    

    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .app-details {
        padding: 40px 0;
    }
    
    .screenshot {
        width: 140px;
    }
    
    .phone-frame {
        height: 280px;
    }
    
    .screenshots {
        gap: 12px;
    }
    
    .download-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .download-notification.show {
        transform: translateY(0);
    }
}

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

.hero-content,
.hero-image,
.app-header,
.screenshots-section,
.description-section,
.permissions-section,
.similar-apps {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.install-btn:active,
.install-btn-large:active {
    transform: scale(0.98);
}

/* Download Notification */
.download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid #e8eaed;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
    overflow: hidden;
}

.download-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.notification-icon {
    background: #34a853;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon .material-icons {
    font-size: 24px;
}

.notification-text h4 {
    color: #202124;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.notification-text p {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    margin-left: auto;
}

.notification-close:hover {
    background-color: #f1f3f4;
}

/* Focus states for accessibility */
.search-input:focus,
.install-btn:focus,
.install-btn-large:focus,
.share-btn:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
} 