/* ====================================================================
   FAVOURITES & GAME LOGINS — PREMIUM STYLES
   ==================================================================== */

/* ==================== FAV GAME CARDS ==================== */

.game-item-link {
    text-decoration: none !important;
    display: block;
}

.fav-game-card {
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.08) !important;
    position: relative;
    padding-right: 40px !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-item-link:hover .fav-game-card {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.28) !important;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.game-item-link:active .fav-game-card {
    transform: scale(0.975);
    box-shadow: none !important;
}

/* Image zoom on card hover */
.fav-game-card .img-wrapper img {
    transition: transform 0.35s ease;
}

.game-item-link:hover .fav-game-card .img-wrapper img {
    transform: scale(1.08);
}

/* ==================== REMOVE FAV BUTTON ==================== */

.btn-remove-fav {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 1px solid rgba(220, 53, 69, 0.22);
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
    z-index: 2;
    transition: all 0.22s ease;
}

.btn-remove-fav:hover {
    background: #dc3545;
    color: #fff;
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(220, 53, 69, 0.35);
}

/* ==================== IMAGE WRAPPER ==================== */

.img-wrapper {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

    .img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ==================== TEXT HELPERS ==================== */

.small-text { font-size: 11px; }

.x-small {
    font-size: 0.65rem;
    letter-spacing: 0.05rem;
}

/* ==================== BACKGROUNDS ==================== */

.bg-light-subtle { background-color: #f8fafd !important; }

/* ==================== ACCORDION HEADER ==================== */

.full-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
    transition: background-color 0.2s ease;
}

    .full-header:hover { background-color: rgba(99, 102, 241, 0.025) !important; }

    .full-header .transition-icon {
        transition: transform 0.3s ease;
    }

    .full-header:not(.collapsed) .transition-icon {
        transform: rotate(180deg);
    }

/* ==================== GAME LOGIN CARDS ==================== */

.login-horizontal-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

    .login-horizontal-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07) !important;
        border-color: rgba(99, 102, 241, 0.18) !important;
    }

/* Monospace font for credential display */
.credential-box {
    font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* ==================== COPY BUTTONS ==================== */

.copy-user,
.copy-pass {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.copy-row-user,
.copy-row-pass,
.copy-btn {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.copy-btn {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==================== EMPTY STATE ==================== */

.empty-state-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: #8b5cf6;
}

/* ==================== DARK MODE ==================== */

[data-bs-theme="dark"] .fav-game-card {
    background: #1e1f2e !important;
    border-color: rgba(99, 102, 241, 0.12) !important;
}

[data-bs-theme="dark"] .game-item-link:hover .fav-game-card {
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .btn-remove-fav {
    background: #252636;
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .bg-light-subtle {
    background-color: #161722 !important;
}

[data-bs-theme="dark"] .full-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .full-header:hover {
    background-color: rgba(99, 102, 241, 0.06) !important;
}

[data-bs-theme="dark"] .login-horizontal-card {
    background: #1e1f2e !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .login-horizontal-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}

[data-bs-theme="dark"] .credential-box {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .empty-state-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.2));
}
