.page-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.back-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button:hover {
    background-color: #e6c988;
    transform: translateY(-2px);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* New Filter Controls Styles */
.filter-controls {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    align-items: center; /* Align items vertically */
    gap: 1.5rem; /* Space between filter groups and reset button */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.filter-button {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    border: 1px solid rgba(242, 220, 153, 0.5);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* Ensure minimum width */
    height: 40px; /* Ensure consistent height */
}

.filter-button:hover {
    background-color: rgba(242, 220, 153, 0.2);
    border-color: var(--primary-color);
}

.filter-button.active {
    background-color: var(--secondary-color); /* Blue highlight for active */
    color: #000; /* Dark text for contrast */
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(138, 196, 208, 0.5);
}

.filter-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.reset-button {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--error-color); /* Red border */
    border-radius: 6px;
    background-color: rgba(255, 107, 107, 0.2); /* Light red background */
    color: var(--error-color); /* Red text */
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background-color: rgba(255, 107, 107, 0.4);
    border-color: #ff4d4d;
}

.resonators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.resonator-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(242, 220, 153, 0.2);
}

.resonator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.resonator-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.resonator-name {
    font-family: 'Cinzel Decorative', cursive;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Styles for icons within resonator cards */
.resonator-card-icons {
    display: flex;
    justify-content: center; /* Center icons horizontally */
    align-items: center;    /* Align icons vertically */
    gap: 8px;              /* Space between icons */
    margin-top: 8px;       /* Space above the icon container */
}

.resonator-card-element-icon,
.resonator-card-weapon-icon {
    height: 24px; /* Set a consistent height */
    width: auto;  /* Maintain aspect ratio */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .resonators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .resonators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .resonators-grid {
        grid-template-columns: 1fr;
    }
    
    .page-container {
        padding: 1rem;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column; /* Stack groups vertically */
        align-items: stretch; /* Stretch groups to full width */
        gap: 1rem;
    }
    .filter-group {
        justify-content: center; /* Center buttons within the group */
        flex-wrap: wrap; /* Allow buttons to wrap */
    }
    .reset-button {
        margin-top: 1rem;
    }
} 