/*
Theme Name: APK Vault
Author: Ksar Husn
Version: 1.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f0f2f5;
    color: #2c3e50;
    line-height: 1.6;
}

/* Full Width Container Setup */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 98%;
        padding: 0 30px;
    }
}

/* Header UI */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0073aa;
    text-decoration: none;
}

/* Base App Grid Structure */
.app-grid {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

/* FULL DESKTOP VIEW (Large Displays - 6 Columns) */
@media (min-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .app-card {
        background: #ffffff;
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid #eef2f5;
    }

    .app-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .app-card .app-icon {
        width: 90px;
        height: 90px;
        border-radius: 20px;
        object-fit: cover;
        margin-bottom: 12px;
    }

    .app-card .app-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .app-card .app-title a {
        color: #1e293b;
        text-decoration: none;
    }

    .app-card .download-btn {
        width: 100%;
        margin-top: auto;
        padding: 8px 0;
        background: #0073aa;
        color: #ffffff;
        text-decoration: none;
        font-weight: 600;
        border-radius: 8px;
    }
}

/* MOBILE VIEW (Single Column List View) */
@media (max-width: 767px) {
    .app-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .app-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        background: #ffffff;
        padding: 12px 16px;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .app-card .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        margin-right: 15px;
        object-fit: cover;
    }

    .app-card .app-details {
        flex: 1;
    }

    .app-card .app-title a {
        font-size: 0.95rem;
        font-weight: 700;
        color: #1e293b;
        text-decoration: none;
    }

    .app-card .download-btn {
        padding: 8px 16px;
        background: #0073aa;
        color: #ffffff;
        border-radius: 20px;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }
}