/* Dungeon Generator Styles */

.dungeon-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dark .dungeon-container {
    background: #1f2937;
}

.dungeon-svg-wrapper {
    overflow: auto;
    max-height: 70vh;
    padding: 1rem;
    background: #f9fafb;
}

.dark .dungeon-svg-wrapper {
    background: #111827;
}

.dungeon-svg-wrapper svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Legend */
.dungeon-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .dungeon-legend {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dungeon-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
}

.dark .dungeon-legend-item {
    color: #9ca3af;
}

.dungeon-legend-item .symbol {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.dark .dungeon-legend-item .symbol {
    background: #374151;
}

/* Export Buttons */
.dungeon-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}

.dungeon-export-btn:hover:not(:disabled) {
    background: #d1d5db;
}

.dungeon-export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dark .dungeon-export-btn {
    background: #374151;
    color: #d1d5db;
}

.dark .dungeon-export-btn:hover:not(:disabled) {
    background: #4b5563;
}

/* Style-specific wrappers */
.dungeon-style-watabou .dungeon-svg-wrapper {
    background: linear-gradient(135deg, #f5f0e1 0%, #e8dcc8 100%);
}

.dungeon-style-modern .dungeon-svg-wrapper {
    background: #f8fafc;
}

.dark .dungeon-style-modern .dungeon-svg-wrapper {
    background: #0f172a;
}
