/* Mount Database styling */

.database-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 16px;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .database-controls {
        grid-template-columns: 1fr;
    }
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-wrapper input {
    width: 100%;
    padding-left: 45px;
}

.mounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mount-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mount-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 24px rgba(var(--accent-gold-rgb), 0.15);
}

.mount-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mount-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.mount-species {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.mount-gen {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.mount-stats-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.mount-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.mount-stat-name {
    color: var(--text-secondary);
}

.mount-stat-value {
    font-weight: 600;
}

.mount-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.mount-recipe {
    color: var(--accent-blue);
    font-weight: 500;
}

.mount-recipe span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Details Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    border-radius: 20px;
    width: 90%;
    max-width: 650px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
}

.modal-header {
    margin-bottom: 25px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-subtitle {
    color: var(--text-secondary);
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.modal-table th, .modal-table td {
    padding: 10px 14px;
    text-align: left;
}

.modal-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-weight: 600;
}

.modal-table td {
    border-bottom: 1px solid var(--border-color);
}

.modal-table tr:last-child td {
    border-bottom: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
