.brewing-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4f1f9 100%);
    border: 2px solid #4A90E2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.brewing-info h2 {
    color: #2C5282;
    margin-bottom: 10px;
}

.brewing-info p {
    color: #4A5568;
    font-size: 1.1em;
    line-height: 1.5;
}

.potion-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #8B4513;
    background: #D2B48C;
    color: #4A4A4A;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: #DEB887;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #8B4513;
    color: white;
}

.potions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.potion-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #8B4513;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.potion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
    border-color: #D2691E;
}

.potion-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 10px;
    text-align: center;
}

.potion-type {
    background: #4A90E2;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    position: absolute;
    top: 10px;
    right: 10px;
}

.potion-type.positive { background: #28a745; }
.potion-type.negative { background: #dc3545; }
.potion-type.base { background: #6c757d; }
.potion-type.splash { background: #ff6b35; }
.potion-type.lingering { background: #9c27b0; }

.potion-effect {
    color: #5A5A5A;
    margin-bottom: 8px;
    font-weight: 500;
}

.potion-duration {
    background: #E6F3FF;
    border: 1px solid #4A90E2;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.9em;
    color: #2C5282;
    text-align: center;
    margin-top: 10px;
}

.potion-ingredients {
    background: #FFF8E1;
    border: 1px solid #FFC107;
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
    font-size: 0.9em;
}

.potion-ingredients strong {
    color: #E65100;
}

.brewing-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.brewing-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 3% auto;
    padding: 30px;
    border: 3px solid #8B4513;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.potion-title {
    color: #8B4513;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.brewing-stand {
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
}

.brewing-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #D2B48C;
}

.brewing-step h4 {
    color: #8B4513;
    margin: 0 0 5px 0;
}

.ingredient-slot, .result-slot {
    width: 60px;
    height: 60px;
    border: 3px solid #8B4513;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    font-size: 2em;
    text-align: center;
}

.arrow {
    font-size: 2em;
    color: #8B4513;
    margin: 0 15px;
}

.potion-effects {
    background: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.potion-effects h3 {
    color: #155724;
    margin-bottom: 15px;
    text-align: center;
}

.effect-item {
    background: white;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 10px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.effect-name {
    font-weight: bold;
    color: #155724;
}

.effect-details {
    color: #6c757d;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .potions-grid {
        grid-template-columns: 1fr;
    }

    .brewing-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .brewing-step {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}