/* Venus: The Alchemical Heart Styles */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

.game-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid #8b4513;
    border-image: linear-gradient(45deg, #8b4513, #daa520) 1;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid #daa520;
    pointer-events: none;
}

.title-screen {
    text-align: center;
    padding: 2rem;
    background: url('../images/parchment-bg.png') center/cover;
    border: 2px solid #8b4513;
    margin-bottom: 2rem;
}

.title-screen h1 {
    font-family: 'MedievalSharp', cursive;
    font-size: 3rem;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem;
}

.title-screen h1::before,
.title-screen h1::after {
    content: '❈';
    color: #daa520;
    margin: 0 1rem;
    font-size: 2rem;
}

.begin-button {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #8b4513, #daa520);
    border: 2px solid #daa520;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.begin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 182, 193, 0.8);
}

.ingredients-container {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #daa520;
    position: relative;
}

.ingredients-container::before {
    content: 'Choose Wisely';
    font-family: 'MedievalSharp', cursive;
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    padding: 0.5rem 1rem;
    color: #daa520;
    border: 1px solid #daa520;
}

.ingredient-card {
    background: rgba(139, 69, 19, 0.2);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #8b4513;
    position: relative;
    overflow: hidden;
}

.ingredient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/ingredient-bg.png') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.3);
}

.ingredient-card.selected {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.2);
}

.ingredient-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.ingredient-card:hover .ingredient-icon {
    transform: scale(1.1) rotate(5deg);
}

.ingredient-name {
    font-family: 'MedievalSharp', cursive;
    color: #daa520;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 0.5rem;
}

.ingredient-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #daa520, transparent);
}

.result-section {
    display: none;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #daa520;
    animation: fadeIn 1s ease-out;
    position: relative;
}

.result-section::before,
.result-section::after {
    content: '✧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #daa520;
    font-size: 1.5rem;
}

.result-section::before {
    left: 1rem;
}

.result-section::after {
    right: 1rem;
}

.result-text {
    font-family: 'MedievalSharp', cursive;
    color: #daa520;
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.reset-button {
    font-family: 'MedievalSharp', cursive;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(139, 69, 19, 0.3);
    border: 1px solid #daa520;
    color: #daa520;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.reset-button::before,
.reset-button::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid #daa520;
}

.reset-button::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.reset-button::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.reset-button:hover {
    background: rgba(255, 182, 193, 0.5);
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 182, 193, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 182, 193, 0.8); }
}

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

.selected-count {
    text-align: center;
    color: #daa520;
    margin: 1rem 0;
    font-size: 1.1rem;
    font-family: 'MedievalSharp', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 2rem;
    border-bottom: 1px solid #8b4513;
}
