/**
 * Social Card Component Styles
 *
 * A reusable card component for displaying game information with:
 * - Thumbnail with gradient background
 * - Badge (NEW) indicator
 * - Creator avatar with color background
 * - Game title, creator name with verified icon
 * - Tags
 * - Stats (likes, plays)
 *
 * Dependencies: design-tokens.css (CSS variables)
 * Used in: explore.html, landing.html
 */


/* ========== Card Container ========== */

.social-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-default);
    cursor: pointer;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.social-card--extended {
    width: 100%;
    max-width: 300px;
    min-width: 280px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 16px 0;
    background: var(--bg-card);
}


/* ========== Thumbnail Section ========== */

.social-card__thumbnail {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 square ratio for 512x512 images */
    border-radius: 7px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.social-card__thumbnail>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.social-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.social-card__badge {
    position: absolute;
    top: -5px;
    right: 10px;
}


/* ========== Badge Styles ========== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: var(--font-semibold);
    color: white;
    height: 21px;
    box-sizing: border-box;
    overflow: hidden;
}

.badge-icon {
    width: 16px;
    height: 13px;
    flex-shrink: 0;
}


/* Featured Badge - Blue gradient */

.badge--featured {
    background: linear-gradient(90deg, #097BED 0%, #09C7ED 100%);
}


/* Updated Badge - Orange gradient */

.badge--updated {
    background: linear-gradient(270deg, #ED6809 0%, #EDB009 100%);
}


/* New Badge - Pink gradient */

.badge--new {
    background: linear-gradient(90deg, #E63396 0%, #E12551 100%);
}


/* ========== Content Section ========== */

.social-card__content {
    display: flex;
    gap: 5px;
    padding: 0 8px;
    min-height: 48px;
    max-height: 64px;
}

.social-card__user {
    display: flex;
    gap: var(--space-1);
    width: 100%;
    align-items: flex-start;
}


/* ========== Avatar Styles ========== */

.avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: white;
    flex-shrink: 0;
}

.avatar--sm {
    width: 40px;
    height: 40px;
}

.avatar-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 50%;
}

.avatar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}


/* ========== User Info Section ========== */

.social-card__user-info {
    flex: 1;
    min-width: 0;
}

.social-card__title {
    display: none;
}

.social-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.verified-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}


/* ========== Tags Section ========== */

.social-card__tags {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
    margin-top: 4px;
}

.tag {
    padding: 3px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-tag);
    text-transform: capitalize;
}


/* ========== Stats Section ========== */

.social-card__stats {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-left: auto;
    padding-left: var(--space-2);
    flex-shrink: 0;
}

.stat-item {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 3333px;
    box-shadow: var(--shadow-lg);
}

.stat-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.stat-item .stat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: color-dodge;
}

.stat-item .count {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 15.6px;
    font-weight: var(--font-light);
    color: white;
    white-space: nowrap;
}