/* ============================================================
   JVGS Game Tracker — Styles
   ============================================================ */

/* Tracker wrap on game pages */
.jvgs-tracker-wrap {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 28px;
    font-family: inherit;
}

.jvgs-tracker-guest {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jvgs-tracker-icon {
    font-size: 22px;
}

.jvgs-btn-login {
    background: #2d6cdf;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.jvgs-btn-login:hover {
    background: #1a4fa8;
}

/* Status buttons */
.jvgs-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 8px;
}

.jvgs-status-row {
    margin-bottom: 14px;
}

.jvgs-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jvgs-status-btn {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    color: #333;
    font-family: inherit;
}

.jvgs-status-btn:hover {
    border-color: #2d6cdf;
    color: #2d6cdf;
}

.jvgs-status-btn.jvgs-active {
    background: #2d6cdf;
    border-color: #2d6cdf;
    color: #fff;
    font-weight: 600;
}

.jvgs-remove-btn {
    border-color: #e0e0e0;
    color: #999;
    margin-left: 4px;
}

.jvgs-remove-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: #fff5f5;
}

/* Extras row (rating + privacy) */
.jvgs-extras-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

/* Star rating */
.jvgs-stars {
    display: flex;
    gap: 4px;
    align-items: center;
}

.jvgs-star {
    font-size: 22px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.1s;
    line-height: 1;
}

.jvgs-star:hover,
.jvgs-star.jvgs-star-filled {
    color: #f6ad18;
}

.jvgs-star-clear {
    font-size: 13px;
    cursor: pointer;
    color: #bbb;
    margin-left: 4px;
    transition: color 0.15s;
}

.jvgs-star-clear:hover {
    color: #e53e3e;
}

/* Privacy toggle */
.jvgs-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.jvgs-privacy-toggle {
    width: 36px;
    height: 20px;
    cursor: pointer;
    accent-color: #2d6cdf;
}

.jvgs-toggle-text {
    font-size: 13px;
    color: #555;
}

/* Message feedback */
.jvgs-tracker-message {
    font-size: 13px;
    color: #2d6cdf;
    margin-top: 10px;
    min-height: 18px;
    font-style: italic;
}

/* ============================================================
   My Games Page — [jvgs_my_games] shortcode
   ============================================================ */

.jvgs-my-games {
    font-family: inherit;
}

/* Stats bar */
.jvgs-stats-bar {
    display: flex;
    gap: 20px;
    background: #f0f4ff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.jvgs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.jvgs-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #2d6cdf;
    line-height: 1;
}

.jvgs-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Groups */
.jvgs-group {
    margin-bottom: 32px;
}

.jvgs-group-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.jvgs-group-count {
    font-weight: 400;
    color: #aaa;
    font-size: 14px;
}

/* Game grid */
.jvgs-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}

.jvgs-game-card {
    text-align: center;
}

.jvgs-game-card img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: block;
    transition: transform 0.15s;
}

.jvgs-game-card img:hover {
    transform: scale(1.04);
}

.jvgs-no-cover {
    background: #eee;
    border-radius: 6px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.jvgs-card-info {
    margin-top: 6px;
}

.jvgs-card-title {
    font-size: 12px;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.3;
    display: block;
}

.jvgs-card-title:hover {
    color: #2d6cdf !important;
}

.jvgs-card-stars {
    font-size: 11px;
    color: #f6ad18;
    margin-top: 3px;
}

.jvgs-card-privacy {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.jvgs-empty {
    color: #777;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .jvgs-status-buttons {
        flex-direction: column;
    }
    .jvgs-extras-row {
        flex-direction: column;
        gap: 16px;
    }
    .jvgs-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}
