/* ==================== 세계 생성기 스타일 ==================== */

.world-generator-container {
    background: linear-gradient(135deg, rgba(173, 111, 255, 0.1), rgba(255, 111, 215, 0.1));
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.world-generator-container::before {
    content: "🌟";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    animation: bounce 2s infinite;
    animation-delay: 0.3s;
}

.world-generator-container::after {
    content: "💫";
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    animation: bounce 2s infinite;
    animation-delay: 0.6s;
}

.generator-header {
    text-align: center;
    margin-bottom: 30px;
}

.generator-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: 'Jua', sans-serif;
    margin-bottom: 10px;
}

.generator-description {
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.generator-controls {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.options-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-button:hover {
    background-color: #e5e5e5;
}

.option-button.selected {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-color);
}

/* 세계 필터 스타일 */
.world-filter {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.world-filter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(173, 111, 255, 0.3);
    outline: none;
}

.world-filter[multiple] {
    height: 120px;
}

.filter-description {
    margin-top: 10px;
    padding: 10px;
    background-color: white;
    border-left: 3px solid var(--primary-light);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
    min-height: 40px;
}

.filter-note {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #888;
}

.generate-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Jua', sans-serif;
    margin-top: 10px;
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(173, 111, 255, 0.4);
}

/* 세계 결과 스타일 */
.world-result {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 30px;
    display: none;
}

.world-result.visible {
    display: block;
    animation: fadeIn 0.5s;
}

.world-name {
    font-size: 2rem;
    color: var(--primary-dark);
    font-family: 'Jua', sans-serif;
}

.world-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.detail-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-content {
    line-height: 1.5;
}

.world-description {
    margin-top: 20px;
    line-height: 1.7;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* 로딩 오버레이 스타일 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-family: 'Jua', sans-serif;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-color);
    animation: spin 1s infinite linear;
    margin-bottom: 20px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .world-details {
        grid-template-columns: 1fr;
    }
}
