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

:root {
    --primary-green: #6B9F2D;
    --primary-blue: #0D3B66;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0 20px 60px;
}

/* APK Grid */
.apk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* APK Card */
.apk-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.apk-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.apk-thumbnail {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #8bc34a 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.apk-card:hover .apk-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(107, 159, 45, 0.3);
}

.apk-thumbnail-link {
    text-decoration: none;
    display: block;
}

.android-icon {
    width: 70px;
    height: 70px;
    fill: var(--white);
}

.apk-info {
    width: 100%;
}

.apk-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.apk-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, #8bc34a 100%);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(107, 159, 45, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 159, 45, 0.4);
    background: linear-gradient(135deg, #8bc34a 0%, var(--primary-green) 100%);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

/* Footer */
.footer {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .logo {
        max-width: 280px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .apk-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 20px auto 0;
    }

    .apk-card {
        padding: 28px;
    }

    .apk-thumbnail {
        width: 100px;
        height: 100px;
    }

    .android-icon {
        width: 60px;
        height: 60px;
    }

    .apk-name {
        font-size: 1.3rem;
    }

    .main-content {
        padding: 0 20px 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 240px;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .apk-card {
        padding: 24px;
    }

    .download-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.apk-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
