/* 8 Weizen - Premium Beer Rating Platform */

:root {
    --beer-gold: #D4AF37;
    --beer-amber: #FF8C00;
    --beer-dark: #8B4513;
    --beer-light: #F5DEB3;
    --beer-foam: #FFFAF0;
    --beer-malt: #CD853F;
    --beer-hops: #228B22;
    --wheat-color: #DEB887;
    --primary-color: #D4AF37;
    --secondary-color: #8B4513;
    --accent-color: #FF8C00;
    --text-dark: #2F1B14;
    --text-light: #FFFAF0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, 
        var(--beer-dark) 0%, 
        var(--beer-malt) 30%, 
        var(--wheat-color) 70%, 
        var(--beer-foam) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clean beer-focused design - remove terrain elements */

/* Clean beer-focused clouds */
.beer-clouds {
    position: fixed;
    top: 5%;
    left: 0;
    right: 0;
    height: 30%;
    pointer-events: none;
    z-index: -1;
}

.beer-clouds::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80px;
    height: 40px;
    background: rgba(245, 245, 220, 0.7);
    border-radius: 40px;
    box-shadow: 
        20px 10px 0 10px rgba(245, 245, 220, 0.7),
        -20px 10px 0 10px rgba(245, 245, 220, 0.7);
    animation: cloudFloat1 25s ease-in-out infinite;
}

.beer-clouds::after {
    content: '';
    position: absolute;
    top: 50px;
    right: 15%;
    width: 60px;
    height: 30px;
    background: rgba(245, 245, 220, 0.6);
    border-radius: 30px;
    box-shadow: 
        15px 8px 0 8px rgba(245, 245, 220, 0.6),
        -15px 8px 0 8px rgba(245, 245, 220, 0.6);
    animation: cloudFloat2 30s ease-in-out infinite reverse;
}

@keyframes cloudFloat1 {
    0%, 100% { transform: translateX(-20px); opacity: 0.9; }
    50% { transform: translateX(20px); opacity: 0.7; }
}

@keyframes cloudFloat2 {
    0%, 100% { transform: translateX(10px); opacity: 0.8; }
    50% { transform: translateX(-15px); opacity: 0.6; }
}

/* Colors */
.text-beer-dark {
    color: var(--beer-dark) !important;
}

.bg-beer-dark {
    background: linear-gradient(45deg, var(--beer-dark), var(--beer-malt)) !important;
}

.bg-beer-gold {
    background: linear-gradient(45deg, var(--beer-gold), var(--beer-amber)) !important;
    color: var(--text-dark) !important;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 2rem !important;
    font-weight: bold !important;
    color: var(--beer-gold) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--beer-amber) !important;
    transform: scale(1.02);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--beer-light) !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 16px !important;
    margin: 2px;
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid var(--beer-gold);
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: var(--beer-gold);
    border-color: var(--beer-amber);
    color: var(--beer-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Navigation Logo */
.navbar-logo {
    height: 60px;
    width: auto;
    border-radius: 50%;
    border: 3px solid var(--beer-gold);
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--beer-amber);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.9) 0%,
        rgba(205, 133, 63, 0.8) 50%,
        rgba(212, 175, 55, 0.7) 100%);
    min-height: 60vh;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--beer-gold);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--beer-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Logo */
.hero-logo-container {
    text-align: center;
}

.hero-logo {
    height: 180px;
    width: auto;
    border-radius: 50%;
    border: 6px solid var(--beer-gold);
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    background: radial-gradient(circle at center, var(--beer-foam) 0%, var(--wheat-color) 100%);
    padding: 12px;
    transition: all 0.5s ease;
    animation: heroLogoFloat 3s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(10deg);
    border-color: var(--beer-amber);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

@keyframes heroLogoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(2deg); 
    }
}

/* Drunken Character */
.drunken-character {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 4rem;
    animation: drunkSway 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes drunkSway {
    0%, 100% { 
        transform: rotate(-3deg) translateX(5px);
    }
    25% {
        transform: rotate(2deg) translateX(-3px);
    }
    50% { 
        transform: rotate(-1deg) translateX(8px);
    }
    75% {
        transform: rotate(3deg) translateX(-5px);
    }
}

/* Floating Beer Elements */
.beer-bubbles {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 2rem;
    opacity: 0.3;
    animation: bubbleFloat 6s ease-in-out infinite;
    z-index: 1;
}

.beer-bubbles::before {
    content: '🍺 🥨 🍻 🥨 🍺';
    letter-spacing: 30px;
}

@keyframes bubbleFloat {
    0%, 100% { 
        transform: translateY(0px);
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-15px);
        opacity: 0.6;
    }
}

/* Drunken Character Assistant */
.drunken-character {
    position: fixed;
    bottom: 25px;
    right: 25px;
    font-size: 4rem;
    z-index: 1000;
    animation: drunkWobble 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.4));
}

.drunken-character::before {
    content: '🍻😵‍💫';
    display: block;
    animation: drunkBlink 3s ease-in-out infinite;
}

.drunken-character:hover {
    transform: scale(1.1);
    animation-duration: 1s;
}

@keyframes drunkWobble {
    0%, 100% { 
        transform: rotate(-2deg) translateY(0px);
    }
    25% { 
        transform: rotate(1deg) translateY(-5px);
    }
    50% { 
        transform: rotate(-1deg) translateY(3px);
    }
    75% { 
        transform: rotate(2deg) translateY(-2px);
    }
}

@keyframes drunkBlink {
    0%, 85%, 100% { 
        opacity: 1;
    }
    90%, 95% { 
        opacity: 0.3;
    }
}

.drunken-character:hover {
    transform: scale(1.1);
    background: 
        radial-gradient(ellipse at top, var(--beer-foam) 0%, var(--beer-gold) 50%, var(--beer-amber) 100%);
    animation: beerCelebrate 1s ease-in-out infinite;
    box-shadow: 
        0 12px 24px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 0 20px rgba(212, 175, 55, 0.6);
}

.drunken-character::after {
    content: '🍻Cheers!';
    position: absolute;
    top: -40px;
    right: -30px;
    font-size: 14px;
    color: var(--beer-dark);
    background: var(--beer-foam);
    padding: 4px 8px;
    border-radius: 8px;
    border: 2px solid var(--beer-gold);
    animation: cheersFloat 2s ease-in-out infinite;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
    white-space: nowrap;
}

@keyframes beerCelebrate {
    0%, 100% { 
        transform: scale(1.1);
    }
    50% { 
        transform: scale(1.15) rotate(5deg);
    }
}

@keyframes cheersFloat {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes explosion {
    0%, 80%, 100% { 
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    40% { 
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
}

@keyframes drunkWalk {
    0%, 100% { 
        transform: translateX(0) rotate(0deg); 
    }
    25% { 
        transform: translateX(-15px) rotate(-5deg); 
    }
    50% { 
        transform: translateX(10px) rotate(5deg); 
    }
    75% { 
        transform: translateX(-5px) rotate(-2deg); 
    }
}

@keyframes bubbles {
    0%, 100% { 
        opacity: 0.7;
        transform: translateY(0) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }
}

/* Beer Foam Effect */
.beer-foam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 15px 15px 0 0;
    animation: foam 4s ease-in-out infinite;
}

@keyframes foam {
    0%, 100% { height: 40px; }
    50% { height: 50px; }
}

/* Beer Bubble Effects */
.beer-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 4s linear infinite;
}

.bubble:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-delay: 0s; }
.bubble:nth-child(2) { left: 30%; width: 6px; height: 6px; animation-delay: 1s; }
.bubble:nth-child(3) { left: 50%; width: 8px; height: 8px; animation-delay: 0.5s; }
.bubble:nth-child(4) { left: 70%; width: 12px; height: 12px; animation-delay: 1.5s; }
.bubble:nth-child(5) { left: 90%; width: 7px; height: 7px; animation-delay: 2s; }

@keyframes rise {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(10px);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(-10px);
    }
}

/* Wobbling Beer Glasses */
.wobble {
    animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.min-vh-50 {
    min-height: 50vh;
}

.beer-animation i {
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.3));
}

/* Beer Cards */
.beer-card {
    background: linear-gradient(135deg, var(--beer-foam) 0%, var(--wheat-color) 100%);
    border: 2px solid var(--beer-gold);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.beer-card:hover {
    transform: translateY(-3px);
    border-color: var(--beer-amber);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.beer-card .card-header {
    background: linear-gradient(to right, var(--beer-dark) 0%, var(--beer-malt) 100%);
    color: var(--beer-light);
    border: none;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid var(--beer-gold);
}

.beer-card .card-header::before {
    content: '🍺 ';
    font-size: 18px;
    margin-right: 8px;
}

.beer-card .card-body {
    background: rgba(255, 250, 240, 0.95);
    color: var(--text-dark);
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.beer-card .card-title {
    color: var(--beer-dark) !important;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.beer-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    border: 2px solid var(--beer-gold);
}

.beer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.placeholder-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--space-dark), 
        var(--nebula-purple), 
        var(--plasma-blue));
    position: relative;
}

.placeholder-image::before {
    content: '🍺🍻🥨';
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
    color: var(--beer-gold);
    text-shadow: 0 0 20px var(--beer-amber);
}

.placeholder-image-large {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
}

/* Battle Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, var(--worms-purple), var(--worms-blue));
    padding: 20px;
    border: 4px solid var(--worms-yellow);
    border-radius: 20px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--worms-white);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '⚡';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 3rem;
    opacity: 0.3;
    animation: statSpark 2s ease-in-out infinite;
}

@keyframes statSpark {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.stat-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 12px 12px 24px rgba(0,0,0,0.9);
    background: linear-gradient(135deg, var(--worms-orange), var(--worms-red));
}

.stat-icon {
    font-size: 40px;
    color: var(--worms-yellow);
    margin-bottom: 12px;
    text-shadow: 3px 3px 0px var(--worms-black);
    animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--worms-white);
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 3px 3px 0px var(--worms-black);
}

.stat-label {
    color: var(--worms-yellow);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    text-shadow: 2px 2px 0px var(--worms-black);
}

/* Filter Card */
.filter-card {
    background: linear-gradient(45deg, var(--worms-grass), var(--worms-green));
    border: 4px solid var(--worms-yellow);
    border-radius: 20px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.7);
    color: var(--worms-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Beer Detail Page */
.beer-detail-card {
    background: linear-gradient(135deg, var(--worms-dirt), #8B4513);
    border: 5px solid var(--worms-yellow);
    border-radius: 25px;
    box-shadow: 12px 12px 24px rgba(0,0,0,0.8);
    overflow: hidden;
    color: var(--worms-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.beer-detail-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: saturate(1.5) contrast(1.3) hue-rotate(20deg);
    border-bottom: 4px solid var(--worms-red);
}

.beer-stats .stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 8px;
    border-radius: 10px;
    border-left: 4px solid var(--worms-yellow);
}

.stat-label {
    font-weight: bold;
    color: var(--worms-yellow);
    min-width: 140px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px var(--worms-black);
}

/* Vote Form */
.vote-form-card, .quick-stats-card, .navigation-card, .add-beer-card, .tips-card {
    background: linear-gradient(135deg, var(--worms-purple), var(--worms-blue));
    border: 4px solid var(--worms-yellow);
    border-radius: 20px;
    box-shadow: 8px 8px 16px rgba(0,0,0,0.7);
    color: var(--worms-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vote-form-card {
    background: linear-gradient(135deg, var(--beer-foam) 0%, var(--wheat-color) 100%);
    border: 2px solid var(--beer-gold);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 20px;
}

.vote-form-card .card-header, .quick-stats-card .card-header, .add-beer-card .card-header, .tips-card .card-header {
    background: linear-gradient(to right, var(--worms-red), var(--worms-orange));
    color: var(--worms-white);
    border: none;
    padding: 12px 16px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--worms-yellow);
    border-radius: 15px 15px 0 0;
    text-shadow: 2px 2px 0px var(--worms-black);
    letter-spacing: 1px;
}

.star-rating {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.star-rating .star {
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 0.2rem;
    font-size: 2rem;
    color: #ddd;
}

.star-rating .star:hover {
    transform: scale(1.2);
    color: var(--beer-gold);
    text-shadow: 0 0 15px var(--beer-amber);
}

.star-rating .star.selected {
    color: var(--beer-gold);
    text-shadow: 0 0 10px var(--beer-amber);
}

/* Review Display */
.vote-item {
    background: rgba(255, 250, 240, 0.9);
    border-left: 4px solid var(--beer-gold);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vote-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.vote-rating .fa-star {
    font-size: 1rem;
}

.votes-section {
    max-height: 600px;
    overflow-y: auto;
}

.votes-section::-webkit-scrollbar {
    width: 8px;
}

.votes-section::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 4px;
}

.votes-section::-webkit-scrollbar-thumb {
    background: var(--beer-gold);
    border-radius: 4px;
}

.votes-section::-webkit-scrollbar-thumb:hover {
    background: var(--beer-amber);
}

/* Beer Detail Enhancements */
.beer-detail-card {
    background: linear-gradient(135deg, var(--beer-foam) 0%, var(--wheat-color) 100%);
    border: 2px solid var(--beer-gold);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.beer-detail-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--beer-dark), var(--beer-malt));
}

.beer-detail-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.placeholder-image-large {
    color: var(--beer-gold);
    text-align: center;
}

.beer-stats {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: bold;
    color: var(--beer-dark);
}

/* Rating Display */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.rating .fa-star {
    font-size: 1.2rem;
}

/* Submit Button Enhancement */
.btn-warning {
    background: linear-gradient(45deg, var(--beer-gold), var(--beer-amber));
    border: 2px solid var(--beer-dark);
    color: var(--beer-dark);
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(45deg, var(--beer-amber), var(--beer-gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: var(--text-dark);
}

/* Pagination */
.pagination .page-link {
    color: var(--beer-dark);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--beer-gold);
    border-color: var(--beer-gold);
    color: var(--beer-dark);
}

.pagination .page-link:hover {
    color: var(--beer-dark);
    background-color: #fff3cd;
    border-color: var(--beer-gold);
}

/* Rating Stars */
.rating {
    display: inline-flex;
    align-items: center;
}

.rating i {
    font-size: 1rem;
    margin-right: 0.1rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .hero-section {
        min-height: 50vh;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        height: 120px;
    }
    
    .navbar-logo {
        height: 45px;
    }
    
    .navbar-brand {
        font-size: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .beer-card .card-title {
        font-size: 16px;
    }
    
    .beer-detail-image img {
        height: 250px;
    }
    
    .chart-container, .beer-types-list {
        margin-bottom: 2rem;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better text rendering on mobile */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.beer-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--beer-gold);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes clippyAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.3) rotate(-10deg);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1) rotate(5deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
}

@keyframes clippyDisappear {
    0% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
    100% { 
        opacity: 0; 
        transform: scale(0.3) rotate(10deg);
    }
}

/* Floating beer elements */
.beer-floats {
    position: fixed;
    bottom: 20%;
    left: -50px;
    font-size: 2rem;
    z-index: 5;
    animation: beerDrift 15s linear infinite;
    pointer-events: none;
}

.beer-floats::before {
    content: '🍺';
    animation: beerRotate 2s ease-in-out infinite;
}

.beer-floats:nth-child(2) {
    bottom: 25%;
    animation-delay: -5s;
    animation-duration: 18s;
}

.beer-floats:nth-child(2)::before {
    content: '🍻';
}

.beer-floats:nth-child(3) {
    bottom: 30%;
    animation-delay: -10s;
    animation-duration: 20s;
}

.beer-floats:nth-child(3)::before {
    content: '🍺';
}

@keyframes beerDrift {
    0% { 
        left: -50px; 
        transform: scaleX(1);
    }
    48% { 
        left: calc(100% - 50px); 
        transform: scaleX(1);
    }
    50% { 
        left: calc(100% - 50px); 
        transform: scaleX(-1);
    }
    98% { 
        left: -50px; 
        transform: scaleX(-1);
    }
    100% { 
        left: -50px; 
        transform: scaleX(1);
    }
}

@keyframes beerRotate {
    0%, 100% { 
        transform: rotate(0deg);
    }
    50% { 
        transform: rotate(10deg);
    }
}

/* Weapon pickups scattered around - inspired by WMDB featured maps */
.weapon-pickup {
    position: absolute;
    font-size: 2rem;
    z-index: 4;
    animation: weaponBounce 5s ease-in-out infinite;
    pointer-events: none;
    text-shadow: 
        2px 2px 0px rgba(0,0,0,0.8),
        0 0 10px rgba(255,215,0,0.6);
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.7));
}

.weapon-pickup:nth-child(6) {
    bottom: 50%;
    left: 18%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.weapon-pickup:nth-child(7) {
    bottom: 42%;
    right: 22%;
    animation-delay: -1.5s;
    animation-duration: 5.5s;
}

.weapon-pickup:nth-child(8) {
    bottom: 48%;
    left: 65%;
    animation-delay: -3s;
    animation-duration: 6.5s;
}

.weapon-pickup:nth-child(9) {
    bottom: 45%;
    left: 85%;
    animation-delay: -4.5s;
    animation-duration: 5s;
}

.weapon-pickup:nth-child(10) {
    bottom: 52%;
    right: 45%;
    animation-delay: -2s;
    animation-duration: 7s;
}

@keyframes weaponBounce {
    0%, 100% { 
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.8;
        text-shadow: 2px 2px 0px rgba(0,0,0,0.8), 0 0 10px rgba(255,215,0,0.6);
    }
    25% { 
        transform: translateY(-6px) scale(1.1) rotate(5deg);
        opacity: 1;
        text-shadow: 2px 2px 0px rgba(0,0,0,0.8), 0 0 15px rgba(255,215,0,0.8);
    }
    50% { 
        transform: translateY(-12px) scale(1.2) rotate(0deg);
        opacity: 0.9;
        text-shadow: 2px 2px 0px rgba(0,0,0,0.8), 0 0 20px rgba(255,215,0,1);
    }
    75% { 
        transform: translateY(-4px) scale(1.05) rotate(-3deg);
        opacity: 1;
        text-shadow: 2px 2px 0px rgba(0,0,0,0.8), 0 0 12px rgba(255,215,0,0.7);
    }
}

/* Authentic Worms explosion craters */
.explosion-crater {
    position: absolute;
    width: 40px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: craterPulse 6s ease-in-out infinite;
}

.explosion-crater:nth-child(1) {
    top: 60%;
    left: 15%;
    width: 35px;
    height: 18px;
    animation-delay: 0s;
}

.explosion-crater:nth-child(2) {
    top: 55%;
    right: 20%;
    width: 50px;
    height: 25px;
    animation-delay: -2s;
}

.explosion-crater:nth-child(3) {
    top: 65%;
    left: 70%;
    width: 30px;
    height: 15px;
    animation-delay: -4s;
}

@keyframes craterPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* Beer List Rating Display */
.beer-rating-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
}

.beer-rating-stars {
    display: flex;
    gap: 0.2rem;
}

.beer-rating-stars .fa-star {
    font-size: 0.9rem;
}

.beer-vote-count {
    font-size: 0.8rem;
    color: var(--beer-dark);
    font-weight: bold;
}

.beer-average-rating {
    font-size: 1rem;
    font-weight: bold;
    color: var(--beer-dark);
}

/* Enhanced Beer Card for Voting Display */
.beer-card .rating-info {
    background: rgba(139, 69, 19, 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-info .stars {
    display: flex;
    gap: 0.1rem;
}

.rating-info .vote-summary {
    font-size: 0.8rem;
    color: var(--beer-dark);
}

/* Hover Effects for Interactive Elements */
.beer-card:hover .rating-info {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Quick Stats Cards */
.quick-stats-card {
    background: linear-gradient(135deg, var(--beer-foam) 0%, var(--wheat-color) 100%);
    border: 2px solid var(--beer-gold);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.quick-stats-card:hover {
    transform: translateY(-3px);
}

.quick-stats-card .card-header {
    background: linear-gradient(45deg, var(--beer-dark), var(--beer-malt));
    color: var(--beer-light);
    border-radius: 10px 10px 0 0;
    text-align: center;
}

/* Navigation Enhancements */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--beer-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--beer-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    font-weight: bold;
    color: var(--beer-dark);
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}
