* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffd93d;
    --bg-gradient-start: #11998e;
    --bg-gradient-end: #38ef7d;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2d3436;
    --text-light: #636e72;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    animation: fadeInDown 0.8s ease;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

header .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
    animation: fadeIn 1s ease;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: white;
    color: var(--bg-gradient-start);
}

/* Cocktail Grid */
.cocktail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    animation: fadeIn 1.2s ease;
}

.cocktail-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.cocktail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.cocktail-card.hidden {
    display: none;
}

/* Cocktail Header */
.cocktail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.cocktail-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.difficulty {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty.easy {
    background: #00b894;
    color: white;
}

.difficulty.medium {
    background: #fdcb6e;
    color: var(--text-dark);
}

.badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    animation: bounceIn 0.8s ease;
}

/* Ingredients */
.ingredients {
    margin-bottom: 20px;
}

.ingredients h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.ingredients ul {
    list-style: none;
    padding-left: 0;
}

.ingredients li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.ingredients li::before {
    content: "🍸";
    position: absolute;
    left: 0;
}

/* Preparation */
.preparation h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.preparation p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Confetti Button */
.confetti-btn {
    margin-top: 15px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffa500 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.confetti-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.6);
}

.confetti-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Ready-to-drink styles */
.ready-drink {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.95) 100%);
}

.drink-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #0984e3;
    color: white;
}

.drink-type.alcohol-free {
    background: #00b894;
    color: white;
}

.ready-info {
    margin-top: 15px;
}

.ready-info p {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
        margin-bottom: 5px;
    }

    header .subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .confetti-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .search-section {
        margin-bottom: 25px;
    }

    #searchInput {
        padding: 12px 15px;
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .filter-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        flex: 1 1 auto;
        min-width: fit-content;
    }

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

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 0.9rem;
    }

    .confetti-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    #searchInput {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .filter-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .cocktail-card {
        padding: 20px;
    }
}
