/* Root Variables for easy customization */

:root {
    --primary-color: #0073e6;
    --secondary-color: #333;
    --background-color: #f9f9f9;
    --heading-background: #0073e6;
    --button-background: #0073e6;
    --button-hover-background: #005bb5;
    --text-color: #333;
    --font-family: Arial, sans-serif;
    --font-size: 16px;
    --heading-font-size: 24px;
    --button-font-size: 18px;
}


/* General layout */

.apk-version-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Always 2 equal columns */
    gap: 20px;
    margin: 0 auto;
    padding: 20px;
}

.apk-version-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.apk-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    color: #666;
}

.apk-icon svg {
    display: inline-block;
    vertical-align: middle;
    stroke: #444;
}

.apk-version-item {
    background: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    /* Fill grid cell */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: var(--font-family);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


/* Ensure items inside the .apk-version-item are stacked */

.apk-version-header,
.apk-version-details,
.apk-download {
    flex-basis: 100%;
    /* Stack items inside the version item */
    text-align: center;
}


/* Header Styling */

.apk-version-header {
    background-color: var(--heading-background);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    width: 100%;
}

.apk-version-header h3 {
    margin: 0;
    font-size: var(--heading-font-size);
}

.apk-version-platform {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    color: #ddd;
}


/* Details list styling */

.apk-version-details {
    display: flex;
    flex-direction: column;
    /* Single column for details */
    gap: 10px;
    margin-top: 15px;
}

.apk-version-info-item {
    display: flex;
    align-items: center;
    font-size: var(--font-size);
}

.apk-version-info-item span {
    margin-left: 10px;
}

.apk-version-info-item strong {
    font-weight: bold;
    color: var(--text-color);
}


/* Icons for each item */

.apk-icon {
    font-size: 20px;
    color: var(--primary-color);
}


/* Download button section */

.apk-download {
    margin-top: 20px;
    text-align: center;
}

.apk-download-button {
    padding: 15px 30px;
    font-size: var(--button-font-size);
    background-color: var(--button-background);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    /* Set max width for button */
}

.apk-download-button:hover {
    background-color: var(--button-hover-background);
}


/* Responsive design */

@media (max-width: 768px) {
    .apk-version-wrapper {
        grid-template-columns: 1fr;
        /* Stack in single column on small screens */
    }
    .apk-version-item {
        width: 95%;
        /* Max width of 95% on mobile */
        min-height: 350px;
        /* Adjust minimum height for mobile */
    }
    .apk-download-button {
        width: 100%;
        /* Full width on smaller screens */
        padding: 20px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .apk-version-header h3 {
        font-size: 20px;
    }
    .apk-version-platform {
        font-size: 14px;
    }
    .apk-version-info-item {
        font-size: 14px;
    }
    .apk-download-button {
        font-size: 16px;
    }
}