/**
 * @package     LoginSecure
 * @subpackage  App Menu - Hub Subtemplate
 * @copyright   Copyright (C) 2009 - 2026 LoginSecure. All rights reserved.
 */

/* === HUB SUBTEMPLATE - Commercial Hub / Cards === */

/* === SHORTCUTS ROW === */

.lsam-shortcuts-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.lsam-shortcuts-row.lsam-dragging {
    cursor: grabbing;
}

.lsam-shortcuts-row::-webkit-scrollbar {
    display: none;
}

.lsam-shortcut-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 2px 10px;
    border-radius: 100px;
    background: #f2f2f7;
    text-decoration: none;
    color: #1c1c1e;
    flex-shrink: 0;
    border: 1px solid #e5e5ea;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.lsam-mode-dark .lsam-shortcut-item {
    background: #2c2c2e;
    color: #f5f5f7;
    border-color: #3a3a3c;
}

.lsam-shortcut-item:active {
    background-color: #e5e5ea;
}

.lsam-mode-dark .lsam-shortcut-item:active {
    background-color: #3a3a3c;
}

.lsam-shortcut-item.lsam-item-active {
    background: #e5e5ea;
    color: #ffffff;
    border-color: #3a3a3c;
}

.lsam-mode-dark .lsam-shortcut-item.lsam-item-active {
    background: #e5e5ea;
    border-color: #3a3a3c;
}

.lsam-shortcut-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    color: inherit;
    flex-shrink: 0;
}

.lsam-shortcut-label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: inherit;
}

/* === CARDS GRID === */

.lsam-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.lsam-mode-dark .lsam-cards-grid {
    border-bottom-color: #2c2c2e;
}

.lsam-card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #f2f2f7;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;

    /* Resetting so we overwrite browser standards */
    padding: 0;           
    margin: 0;            
    text-align: left;     
    line-height: normal;  
    font-family: inherit; 
}

.lsam-mode-dark .lsam-card-item {
    background: #2c2c2e;
}

.lsam-card-item:active {
    opacity: 0.85;
}

.lsam-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lsam-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.lsam-card-icon {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #1c1c1e;
    opacity: 0.1;
    pointer-events: none;
}

.lsam-mode-dark .lsam-card-icon {
    color: #f5f5f7;
}

.lsam-card-label {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1c1c1e;
    text-align: left;
    box-sizing: border-box;
}

.lsam-card-item img ~ .lsam-card-label,
.lsam-card-item .lsam-card-overlay ~ .lsam-card-label {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.lsam-mode-dark .lsam-card-item:not(:has(img)) .lsam-card-label {
    color: #f5f5f7;
}

/* === HUB LIST SECTION === */

.lsam-hub-list {
    padding-top: 4px;
}

/* === OVERRIDE TEMPLATE HIDING ICONS === */

.lsam-cards-grid .lsam-card-item .lsam-card-icon {
    display: flex !important;
}