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

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    border-radius: 10px;
    margin-top: 30px;
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    width: 80px;
    height: 80px;
    background: #461872;
    border-radius: 16px;
    margin-right: 20px;
    object-fit: cover;
    overflow: hidden;
}

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

.app-info h1 {
    flex: 1;
    margin: 0;
    font-size: 24px;
    color: #461872;
}

.version {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.download-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

/* Download Section */
.download-section {
    margin-top: 20px;
}

.download-button {
    background: linear-gradient(135deg, #461872 0%, #6a4c93 100%);
    color: white;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 24, 114, 0.4);
}

.download-counter {
    text-align: center;
    margin-top: 10px;
    color: #461872;
    font-weight: bold;
    font-size: 14px;
}

/* Screenshots */
.screenshots {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.screenshots::-webkit-scrollbar {
    display: none;
}

.screenshot {
    flex: 0 0 auto;
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshot:hover {
    transform: scale(1.05);
}

/* Description */
.description {
    margin-top: 30px;
    line-height: 1.8;
    font-size: 15px;
    color: #202124;
}

.description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #461872;
    font-weight: 600;
}

.description ul {
    padding-left: 20px;
    margin-top: 10px;
}

.description ul li {
    margin-bottom: 8px;
}

.description-content {
    max-height: 170px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.description.expanded .description-content {
    max-height: 1000px;
}

.desc-toggle {
    background: none;
    border: none;
    color: #461872;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    cursor: pointer;
    padding: 0;
}

/* Changelog */
.changelog {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.changelog h3 {
    color: #461872;
    margin-bottom: 20px;
    text-align: center;
}

.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #461872;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.update-version {
    background: #461872;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.update-date {
    color: #666;
    font-size: 14px;
}

.update-item ul {
    margin: 0;
    padding-left: 20px;
}

.update-item li {
    margin-bottom: 8px;
    color: #333;
}

.update-item strong {
    color: #461872;
}

/* Reviews */
.reviews {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.reviews h3 {
    color: #461872;
    margin-bottom: 15px;
    text-align: center;
}

.review-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #461872;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: #461872;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.review-stars {
    color: #ffd700;
    font-size: 16px;
}

.review-text {
    color: #666;
    font-style: italic;
}

/* Instructions */
.instructions {
    margin-top: 30px;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
}

.instructions h3 {
    color: #461872;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.footer a {
    color: #461872;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .screenshots {
        flex-wrap: nowrap;
    }
    
    .screenshot {
        width: 140px;
    }
    
    .changelog-content {
        gap: 15px;
    }
    
    .update-item {
        padding: 15px;
    }
    
    .container {
        padding: 15px;
        margin-top: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo {
        margin-right: 0;
    }
}
