/* Default (Light Mode) */
.details-container {
    display: none;
    flex-direction: column;
    align-items: center;
    font-size: 0.71875rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 9px;
    margin-bottom: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    line-height: 1.5;
    width: 100%;
}

.tile.tile-hovered .details-container,
.tile.details-expanded .details-container,
body.details-toggle-active .details-container {
    display: flex;
}


.detail-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.detail-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: right;
    white-space: nowrap;
}

.detail-value {
    color: #6b7280;
    font-weight: 400;
}

.detail-source {
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s ease;
}

.detail-source:hover {
    color: var(--app-accent);
}

.detail-stars {
    font-weight: 400;
    opacity: 0.85;
}

.activity-green  { color: #16a34a; }
.activity-yellow { color: #ca8a04; }
.activity-red    { color: #dc2626; }

/* Dark Mode */
html[data-color-scheme='dark'] {

    .details-container {
        color: rgba(245, 245, 245, 0.4);
        border-top-color: rgba(255, 255, 255, 0.07);
    }

    .detail-label {
        color: rgba(255, 255, 255, 0.2);
    }

    .detail-value {
        color: rgba(245, 245, 245, 0.35);
    }

    .detail-source {
        color: rgba(245, 245, 245, 0.5);
    }

    .detail-source:hover {
        color: var(--app-accent);
    }

    .activity-green  { color: #4ade80; }
    .activity-yellow { color: #fbbf24; }
    .activity-red    { color: #f87171; }

}

/* 1080p screens */
@media (max-width: 1080px) {

    .details-container {
        font-size: 0.6875rem;
    }

    .detail-label {
        font-size: 0.625rem;
    }

}

/* Source chip hover in details — blue like partner tagline */
.details-container a.tag-chip.closed-source-tag:hover {
    color: var(--app-accent) !important;
    border-color: var(--app-accent) !important;
    transform: translateY(-1px);
}

html[data-color-scheme='dark'] .details-container a.tag-chip.closed-source-tag:hover {
    color: var(--app-accent) !important;
    border-color: var(--app-accent) !important;
}

