/* App Detail Page Styles */
.app-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.app-header {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.app-icon {
    width: 150px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    flex-shrink: 0;
    object-fit: cover;
}

.app-info {
    flex-grow: 1;
}

.app-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.app-developer {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
}

.app-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-rating, .app-downloads, .app-age {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.app-rating span, .app-downloads span, .app-age span {
    font-weight: 500;
    color: var(--dark);
}

.app-downloads i, .app-age i {
    margin-right: 0.3rem;
    color: var(--gray);
}

.app-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.download-btn:hover {
    background: #5649c5;
}

.download-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.download-btn i {
    margin-right: 0.5rem;
}

.stars {
    color: var(--warning);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.stars i {
    margin-right: 0.1rem;
}

.wishlist-btn {
    background: var(--light);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.wishlist-btn:hover {
    background: var(--light-gray);
}

.wishlist-btn i {
    margin-right: 0.5rem;
}

.app-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.screenshots {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.screenshot-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshot-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot {
    display: inline-block;
    width: 220px;
    height: 400px;
    border-radius: 12px;
    margin-right: 1rem;
    overflow: hidden;
    position: relative;
}

.screenshot:last-child {
    margin-right: 0;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.description {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.description-text {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.description-text ul {
    margin-left: 1.5rem;
}

.description-text li {
    margin-bottom: 0.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.additional-info {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray);
    font-weight: 500;
}

.info-value {
    color: var(--dark);
    font-weight: 500;
}

.reviews {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.reviewer {
    font-weight: 600;
    color: var(--dark);
}

.review-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.review-content {
    color: var(--dark);
}

.app-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.similar-apps {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.similar-app {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    text-decoration: none;
    color: var(--dark);
}

.similar-app:last-child {
    border-bottom: none;
}

.similar-app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.similar-app-info {
    flex-grow: 1;
}

.similar-app-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.similar-app-genre {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .app-content {
        grid-template-columns: 1fr;
    }
    
    .app-detail-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .app-detail-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .app-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 120px;
        height: 120px;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .app-meta {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .app-rating, .app-downloads, .app-age {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    
    .app-actions {
        justify-content: center;
        width: 100%;
    }
    
    .screenshot {
        width: 160px;
        height: 300px;
    }
    
    .screenshots, .description, .additional-info, .reviews, .similar-apps {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .description-text {
        font-size: 0.95rem;
    }
    
    .description-text ul {
        padding-left: 1.2rem;
    }
    
    .description-text li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-bottom: 70px;
    }
    
    .app-actions {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .download-btn, .wishlist-btn {
        justify-content: center;
        width: 100%;
    }
    
    .app-header {
        padding: 1rem;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .app-meta {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .app-rating, .app-downloads, .app-age {
        width: 100%;
        justify-content: center;
    }
    
    .screenshot {
        width: 140px;
        height: 280px;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .description-text {
        font-size: 0.9rem;
    }
    
    .description-text ul {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .info-label {
        font-size: 0.85rem;
    }
    
    .info-value {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .similar-app-icon {
        width: 45px;
        height: 45px;
    }
    
    .similar-app-title {
        font-size: 0.9rem;
    }
    
    .similar-app-genre {
        font-size: 0.8rem;
    }
}

@media (max-width: 375px) {
    .app-icon {
        width: 90px;
        height: 90px;
    }
    
    .app-title {
        font-size: 1.2rem;
    }
    
    .screenshot {
        width: 130px;
        height: 260px;
    }
}
