/* App Details Enhanced Styles */

/* Professional Screenshots Slider */
.app-screenshots {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.screenshots-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
}

.screenshots-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.screenshot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 200px;
    height: 350px;
    object-fit: cover;
    display: block;
}

.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.screenshot-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screenshot-nav.prev {
    left: 10px;
}

.screenshot-nav.next {
    right: 10px;
}

.screenshot-nav svg {
    width: 16px;
    height: 16px;
    fill: #64748b;
}

/* App Details Card */
.app-details-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.app-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.app-icon-enhanced {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.app-info-enhanced h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.app-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #64748b;
}

.app-rating-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars svg {
    width: 16px;
    height: 16px;
}

.rating-text {
    font-size: 14px;
    color: #64748b;
}

/* Clean Cards */
.clean-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.clean-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Enhanced breadcrumbs */
.breadcrumbs-enhanced {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.breadcrumbs-enhanced a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs-enhanced a:hover {
    text-decoration: underline;
}

/* Social sharing enhanced */
.social-enhanced {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.social-btn-enhanced {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #64748b;
    transition: all 0.15s ease;
}

.social-btn-enhanced:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.social-btn-enhanced svg {
    width: 16px;
    height: 16px;
}

/* Download button enhanced */
.download-enhanced {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    margin: 16px 0;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.download-enhanced:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* App info grid */
.app-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.info-item {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.info-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 16px;
    color: #1e293b;
    margin: 0;
    font-weight: 500;
}

/* QR Code enhanced */
.qr-enhanced {
    position: relative;
    display: inline-block;
}

.qr-toggle {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qr-toggle:hover {
    background: #e2e8f0;
}

.qr-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.qr-popup.show {
    display: block;
}

.qr-popup img {
    width: 120px;
    height: 120px;
}

/* Reviews enhanced */
.review-item-enhanced {
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.review-item-enhanced:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.review-title {
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.review-date {
    font-size: 12px;
    color: #64748b;
}

.review-author {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 4px;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Hover effects for related apps */
.hover-effect:hover {
    background-color: #f8fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Additional enhancements */
.min-width-0 {
    min-width: 0;
}

/* Screenshots title */
.app-screenshots h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
}

/* Version and developer badges styling */
.version-badge {
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.developer-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-screenshots {
        padding: 16px;
    }
    
    .screenshot-item img {
        width: 160px;
        height: 280px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .app-icon-enhanced {
        width: 64px;
        height: 64px;
    }
    
    .app-info-enhanced h1 {
        font-size: 20px;
    }
    
    .social-enhanced {
        flex-wrap: wrap;
    }
    
    .app-info-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-nav {
        width: 32px;
        height: 32px;
    }
    
    .screenshot-nav svg {
        width: 12px;
        height: 12px;
    }
}
