/* アイデアガチャセクション */
.idea-gacha-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.idea-gacha-container {
    max-width: 800px;
    margin: 0 auto;
}

.gacha-header {
    text-align: center;
    margin-bottom: 24px;
}

.gacha-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
}

.gacha-header p {
    font-size: 0.95rem;
    color: #a16207;
    margin: 0;
}

.gacha-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gacha-settings {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gacha-settings label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #92400e;
    white-space: nowrap;
}

.genre-select {
    padding: 8px 12px;
    border: 2px solid #d97706;
    border-radius: 8px;
    background: white;
    color: #92400e;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.genre-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.gacha-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.gacha-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.gacha-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.gacha-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gacha-icon {
    font-size: 1.2rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gacha-btn:not(:disabled) .gacha-icon {
    animation: none;
}

.gacha-btn:hover .gacha-icon {
    animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

.gacha-results {
    background: white;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.gacha-results h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 16px 0;
    text-align: center;
}

.gacha-ideas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gacha-idea {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.gacha-idea:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.gacha-idea:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(251, 191, 36, 0.2);
}

.gacha-idea-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #92400e;
    margin: 0;
}

.gacha-idea-select {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gacha-idea:hover .gacha-idea-select {
    opacity: 1;
}

.gacha-idea-select:hover {
    background: #d97706;
}

.gacha-usage-info {
    text-align: center;
}

.usage-info {
    font-size: 0.85rem;
    color: #a16207;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

/* ローディング状態 */
.gacha-loading .gacha-icon {
    animation: spin 1s linear infinite;
}

.gacha-loading {
    background: #9ca3af;
    cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .idea-gacha-section {
        padding: 20px 16px;
        margin-bottom: 24px;
    }
    
    .gacha-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .gacha-settings {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .genre-select {
        min-width: 200px;
    }
    
    .gacha-btn {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
    
    .gacha-header h3 {
        font-size: 1.3rem;
    }
    
    .gacha-header p {
        font-size: 0.9rem;
    }
}