* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.app-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.app-developer {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ff9800;
    font-size: 18px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

/* Install Button */
.install-button {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-install {
    background-color: #4CAF50;
    color: white;
}

.primary-install:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* App Stats */
.app-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* Screenshots */
.screenshots-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.screenshots-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.screenshots-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.screenshot {
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

/* Description */
.description-section {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.description-section h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

.app-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.show-more {
    color: #4CAF50;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.show-more:hover {
    color: #45a049;
}

/* Features */
.features-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.features-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
}

/* Download Section */
.download-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.download-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: left;
}

.platform-btn:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-btn img {
    width: 32px;
    height: 32px;
}

/* Reviews Section */
.reviews-section {
    padding: 20px;
}

.reviews-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

/* Reviews Container */
.reviews-container {
    margin-bottom: 30px;
}

.review {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
}

.review-rating {
    color: #ff9800;
    font-size: 16px;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
        flex-direction: column;
    }
    
    .app-icon {
        margin: 0 auto;
    }
    
    .app-info {
        text-align: center;
        width: 100%;
    }
    
    .install-button {
        width: 100%;
        margin-top: 20px;
    }
    
    .app-stats {
        justify-content: space-between;
        padding: 15px;
    }
    
    .screenshots-container {
        scroll-snap-type: x mandatory;
    }
    
    .screenshot {
        scroll-snap-align: center;
        height: 300px;
        min-width: 180px;
    }
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .platform-buttons {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

/* Rating Summary */
.rating-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.rating-overview {
    text-align: center;
    min-width: 150px;
}

.average-rating {
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.rating-stars {
    color: #ff9800;
    font-size: 20px;
    margin-bottom: 10px;
}

.total-reviews {
    color: #666;
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-bar span:first-child {
    width: 30px;
    font-size: 14px;
    color: #666;
}

.bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background-color: #ff9800;
    transition: width 0.5s ease;
}

.rating-bar span:last-child {
    width: 60px;
    text-align: right;
    font-size: 12px;
    color: #666;
}

/* Write Review Section */
.write-review-section {
    margin-bottom: 30px;
    text-align: center;
}

.write-review-btn {
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input,
.modal textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.modal textarea {
    min-height: 100px;
    resize: vertical;
}

.modal button[type="submit"] {
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal button[type="submit"]:hover {
    background-color: #45a049;
}

/* Star Rating Input */
.rating-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star:hover,
.star.active {
    color: #ff9800;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: #4CAF50;
    background-color: #4CAF50;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: #666;
}