/* ===================================================================
   APPS NAVIGATION - STYLING
   App icons grid and navigation system
   =================================================================== */

/* ===================================================================
   APP ICONS SECTION
   =================================================================== */
.app-icons-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icons-container {
    display: flex;
    gap: 13px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ===================================================================
   APP ITEM WRAPPER & ICONS
   =================================================================== */
.app-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    transition: transform 0.2s ease;
}

.app-item-wrapper:hover {
    transform: scale(1.02);
}

.app-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Segoe UI", Arial, sans-serif;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.app-item-wrapper:hover .app-icon-item {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.app-icon-item.coming-soon {
    opacity: 0.6;
    cursor: default;
    background-color: rgba(255, 255, 255, 0.03);
}

.app-item-wrapper.coming-soon:hover .app-icon-item {
    transform: none;
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ===================================================================
   APP ICON IMAGES & PLACEHOLDERS
   =================================================================== */
.app-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.app-icon-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* ===================================================================
   APP NAMES
   =================================================================== */
.app-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    font-family: "Segoe UI", Arial, sans-serif;
    margin-top: 16px;
    white-space: normal;
    word-wrap: break-word;
    max-width: 110px;
    min-width: 80px;
    transition: color 0.3s ease;
    padding: 0 2px;
}

.app-item-wrapper:hover .app-name {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================================================
   KEYBOARD NAVIGATION
   =================================================================== */
.app-item-wrapper:focus {
    outline: 2px solid rgba(135, 170, 255, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

.app-item-wrapper:focus .app-icon-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(135, 170, 255, 0.3);
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

/* Desktop */
@media (min-width: 1024px) {
    .app-icons-section {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .app-icons-container {
        gap: 16px;
    }

    .app-icon-item {
        width: 68px;
        height: 68px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    }

    .app-item-wrapper:hover .app-icon-item {
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.7);
    }

    .app-icon,
    .app-icon-placeholder {
        width: 51px;
        height: 51px;
        font-size: 27px;
    }

    .app-name {
        font-size: 13px;
        margin-top: 17px;
        max-width: 120px;
        min-width: 90px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .app-icons-container {
        gap: 20px;
    }

    .app-icon-item {
        width: 75px;
        height: 75px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    }

    .app-item-wrapper:hover .app-icon-item {
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8);
    }

    .app-icon,
    .app-icon-placeholder {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .app-name {
        font-size: 14px;
        margin-top: 18px;
        max-width: 130px;
        min-width: 100px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .app-icons-container {
        gap: 8px;
    }

    .app-icon-item {
        width: 64px;
        height: 64px;
    }

    .app-icon,
    .app-icon-placeholder {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .app-name {
        font-size: 12px;
        margin-top: 16px;
        max-width: 110px;
        min-width: 85px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .app-icons-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .app-icons-container {
        gap: 6px;
        justify-content: space-evenly;
        flex-wrap: nowrap;
        padding: 0;
    }

    .app-icon-item {
        width: 48px;
        height: 48px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        flex-shrink: 0;
    }

    .app-item-wrapper:hover .app-icon-item {
        box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6);
    }

    .app-icon,
    .app-icon-placeholder {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .app-name {
        font-size: 9px;
        margin-top: 8px;
        max-width: 75px;
        min-width: 60px;
        line-height: 1.2;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .app-icons-section {
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .app-icons-container {
        gap: 8px;
    }

    .app-icon-item {
        width: 49px;
        height: 49px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .app-item-wrapper:hover .app-icon-item {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    }

    .app-icon,
    .app-icon-placeholder {
        width: 39px;
        height: 39px;
        font-size: 20px;
    }

    .app-name {
        font-size: 10px;
        margin-top: 14px;
        max-width: 85px;
        min-width: 65px;
        line-height: 1.3;
    }
}