/* lists.css - Wishlist/Collection button styles */

/* Small toggle buttons on cards */
.list-buttons {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.4rem;
}
.btn-list {
    background: transparent;
    border: 1px solid var(--border, #333);
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.45;
    transition: opacity 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1.3;
}
.btn-list:hover {
    opacity: 0.8;
    border-color: var(--border-strong, #555);
}
.btn-list.active {
    opacity: 1;
    border-color: var(--accent, #4f8ff7);
    background: rgba(79, 143, 247, 0.1);
}
.btn-quiero.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.btn-tengo.active {
    border-color: var(--green, #34d399);
    background: rgba(52, 211, 153, 0.1);
}

/* Large action buttons on comparar page */
.game-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.btn-action {
    background: transparent;
    border: 1px solid var(--border, #444);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-muted, #ccc);
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-action:hover {
    border-color: var(--border-strong, #666);
    color: var(--text, #fff);
}
.btn-action.active {
    color: var(--text, #fff);
    font-weight: 600;
}
.btn-quiero-lg.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}
.btn-tengo-lg.active {
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.15);
}

/* User nav dropdown */
.user-nav {
    position: relative;
    display: flex;
    align-items: center;
}
.user-nav-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    color: #94a3b8;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s;
}
.user-nav-btn:hover {
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.25);
}
.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-card, #1a1d27);
    border: 1px solid var(--border, #2a2e3d);
    border-radius: var(--radius, 8px);
    min-width: 180px;
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.5));
    z-index: 200;
    overflow: hidden;
}
.user-dropdown.open {
    display: block;
}
.user-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--text-muted, #8b8fa3);
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border, #2a2e3d);
    text-decoration: none;
}
.user-dropdown a:last-child {
    border-bottom: none;
}
.user-dropdown a:hover {
    color: var(--text, #e1e4ed);
    background: var(--bg-card-hover, #22263a);
    text-decoration: none;
}

/* My list page styles */
.list-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.list-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-card);
}
.list-tab:hover {
    color: var(--text);
    text-decoration: none;
}
.list-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.list-summary {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.list-summary strong {
    color: var(--text);
}
.hist-banner {
    background: var(--green-bg);
    border: 1px solid var(--green-dim);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--green);
    font-weight: 600;
}
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}
.list-game-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
    text-decoration: none;
    color: var(--text);
    position: relative;
}
.list-game-card:hover {
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text);
}
.list-game-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}
.list-game-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.list-game-info {
    flex: 1;
    min-width: 0;
}
.list-game-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list-game-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.list-game-price {
    font-weight: 700;
    color: var(--green);
    font-size: 0.92rem;
    margin-top: 0.25rem;
}
.list-game-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    padding: 0.2rem;
}
.list-game-card:hover .list-game-remove {
    opacity: 0.6;
}
.list-game-remove:hover {
    opacity: 1 !important;
    color: var(--red);
}
.badge-hist-mini {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid var(--green-dim);
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0.3rem;
}

/* Auth page styles */
.auth-container {
    max-width: 400px;
    margin: 3rem auto;
    text-align: center;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.auth-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.auth-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.auth-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    margin-bottom: 1rem;
}
.auth-input:focus {
    border-color: var(--accent);
}
.auth-btn {
    width: 100%;
    padding: 0.65rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.auth-btn:hover {
    background: var(--accent-hover);
}
.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0;
}
.auth-btn-google:hover {
    background: #f7f8f8;
    border-color: #c6c6c6;
}
.auth-btn-email {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.auth-btn-email:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--accent);
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    padding: 0 0.8rem;
}
.auth-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--red-bg);
    border-radius: 6px;
}
.auth-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.auth-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.88rem;
}

/* Share list button */
.share-list-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.share-list-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Login link in header */
.login-link {
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    padding: 0.3rem 0.7rem !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
}
.login-link:hover {
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.25);
}

@media (max-width: 640px) {
    .list-grid {
        grid-template-columns: 1fr;
    }
    .auth-container {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
    }
    .game-actions {
        flex-wrap: wrap;
    }
}
