/* desktop.css - Desktop Wallpaper, Icon Grid, and Desktop Widgets */

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.14;
    pointer-events: none;
}

.desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 48px;
    z-index: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    overflow: hidden;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 104px;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    user-select: none;
    position: relative;
}

.desktop-icon:hover {
    background-color: rgba(4, 169, 240, 0.16);
    border-color: rgba(0, 240, 255, 0.6);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(4, 169, 240, 0.35);
}

.desktop-icon:active {
    transform: scale(0.96);
}

.desktop-icon.selected {
    background-color: rgba(4, 169, 240, 0.3);
    border-color: var(--bright-blue);
    outline: 1px dotted var(--cyan-neon);
}

.desktop-icon-img-wrap {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
    background: #110d28;
    border: 1px solid rgba(4, 169, 240, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7), inset 0 0 8px rgba(4, 169, 240, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop-icon:hover .desktop-icon-img-wrap {
    border-color: var(--cyan-neon);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.7), inset 0 0 10px rgba(0, 240, 255, 0.3);
}

.desktop-icon-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-icon-img-wrap i {
    font-size: 28px;
    color: var(--bright-blue);
}

.desktop-icon-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 98px;
    line-height: 1.3;
}

/* Instant Desktop Icon Tooltip */
.desktop-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0d0922;
    color: #ffffff;
    border: 1px solid var(--bright-blue);
    border-radius: 4px;
    padding: 4px 9px;
    font-size: 11px;
    font-family: var(--font-mono);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.08s ease, transform 0.08s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 0 8px rgba(4, 169, 240, 0.4);
    z-index: 999;
}

.desktop-icon[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
    transition-delay: 50ms;
}

/* ========================================================
   FLOATING POST-IT WIDGET: TOP DOADORES
   ======================================================== */
.desktop-widget-donates {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 275px;
    background: linear-gradient(180deg, #1c153f 0%, #110c29 100%);
    border: 2px solid var(--gold-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 14px rgba(255, 215, 0, 0.3);
    z-index: 1;
    padding: 12px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    display: block !important;
}

.desktop-widget-donates:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.95), 0 0 22px rgba(255, 215, 0, 0.5);
}

.widget-postit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.4);
    margin-bottom: 8px;
}

.widget-postit-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}

.widget-postit-meta {
    font-size: 11px;
    color: #ffeb3b;
    margin-bottom: 8px;
    background: rgba(255, 215, 0, 0.12);
    padding: 5px 8px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.widget-postit-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 190px;
    overflow-y: auto;
}

.widget-postit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #e0e0ee;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-postit-name {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
    font-size: 13.5px;
    font-weight: 600;
}

.widget-postit-val {
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-color);
    flex-shrink: 0;
}

.widget-postit-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--bright-blue);
}
