/* ── Shared styles for Favorites, Wishlist, and Collection list pages ── */

.bottle-list-page {
    max-width: 900px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-lg);
}

.list-header {
    margin-bottom: var(--spacing-lg);
}

.list-header h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.list-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Auth prompt ──────────────────────────────────────────────── */

.auth-prompt {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: var(--text-secondary);
}

/* ── Empty state ──────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.4;
}

.empty-state h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-lg) 0;
}

/* ── Bottle grid ──────────────────────────────────────────────── */

.bottle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.bottle-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e8e0d4);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.bottle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bottle-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-alt, #f5f0e8);
    overflow: hidden;
}

.bottle-card-image img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.bottle-card-info {
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bottle-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.bottle-card-type {
    font-size: 0.8rem;
    color: var(--action-primary, #C4611B);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bottle-card-origin {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bottle-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.bottle-card-rating .stars {
    color: var(--action-primary, #C4611B);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.bottle-card-rating .rating-count {
    font-size: 0.8rem;
    color: var(--text-tertiary, #999);
}

/* ── Remove button (positioned top-right of card) ─────────────── */

.remove-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    z-index: 1;
}

.remove-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.remove-btn.favorite-btn.active {
    color: #e74c3c;
}

.remove-btn.wishlist-btn.active {
    color: var(--action-primary, #C4611B);
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 600px) {
    .bottle-list-page {
        padding: var(--spacing-md);
    }

    .bottle-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Dark mode ────────────────────────────────────────────────── */

[data-theme="dark"] .bottle-card {
    background: var(--bg-card, #1a1a1a);
    border-color: var(--border-light, #333);
}

[data-theme="dark"] .bottle-card-image {
    background: var(--bg-surface-alt, #222);
}

[data-theme="dark"] .remove-btn {
    background: rgba(30, 30, 30, 0.9);
    color: #ccc;
}

[data-theme="dark"] .remove-btn:hover {
    background: rgba(40, 40, 40, 1);
}
