:root {
    --color-primary: #2d3436;
    --color-secondary: #636e72;
    --color-accent: #0984e3;
    --color-accent-hover: #00cec9;
    --color-bg-light: #f5f6fa;
    --color-bg-white: #ffffff;
    --color-border: #dfe6e9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-full: 9999px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

.beer-list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.beer-list-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.beer-list-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.beer-list-header p {
    font-size: 1.125rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* Filter Section */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* Grid Layout */
.beer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    gap: 2rem;
}

/* Card Component */
.beer-card {
    background: linear-gradient(135deg, #ffffff 0%, #fdfdfd 50%, #f7f9fc 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
}

.beer-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-accent);
}

.beer-card-image {
    aspect-ratio: 4/3;
    background: radial-gradient(circle at center, #ffffff 0%, #f0f3f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 2px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.beer-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.beer-card-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.beer-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.beer-card:hover .beer-card-image img {
    transform: scale(1.05);
}

.beer-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.beer-card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.beer-card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.3;
}

.beer-style-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.beer-description {
    color: var(--color-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats Grid */
.beer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9aa5b1;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

/* Card Footer */
.beer-card-footer {
    padding: 1.25rem 1.5rem;
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
}

.beer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.beer-link:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.beer-link svg {
    transition: transform 0.2s ease;
}

.beer-link:hover svg {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 2px dashed var(--color-border);
}

.empty-state p {
    color: var(--color-secondary);
    font-size: 1.125rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .beer-list-container {
        padding: 2rem 1rem;
    }

    .beer-list {
        grid-template-columns: 1fr;
    }

    .beer-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}