/* Basic styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.logo {
    max-width: 150px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

h2 {
    font-size: 1.8rem;
    margin: 20px 0;
    color: #3498db;
}

h3 {
    margin: 15px 0;
    color: #2c3e50;
}

p {
    margin-bottom: 15px;
}

/* App grid styling */
.app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.app-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 320px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    background-color: white;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #eee;
}

.app-info {
    padding: 20px;
    text-align: center;
}

/* Button styling */
.button, .download-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.download-button {
    background-color: #2ecc71;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.button:hover, .download-button:hover {
    background-color: #2980b9;
}

.download-button:hover {
    background-color: #27ae60;
}

/* App details page */
.back-link {
    align-self: flex-start;
    color: #3498db;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

.version-badge {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.app-description {
    margin-bottom: 40px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.key-features {
    margin: 20px 0;
}

.key-features ul {
    list-style-type: disc;
    margin-left: 25px;
}

.download-section {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #2ecc71;
}

.system-req {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #666;
}

/* Screenshot gallery */
.screenshots {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.screenshot-gallery {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.screenshot-gallery img {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* Changelog section */
.changelog {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.version h4 {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.date {
    font-size: 0.9rem;
    color: #777;
    font-weight: normal;
    margin-left: 10px;
}

.version ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 25px;
}

/* Footer */
footer {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .screenshot-gallery {
        flex-direction: column;
    }
    
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}